On 12/9/25 1:51 PM, Sascha Hauer wrote: > Switch over to device special files for implementing devfs. With this we > can drop the current devfs implementation as a filesystem driver. > > Signed-off-by: Sascha Hauer <[email protected]> Reviewed-by: Ahmad Fatoum <[email protected]> > +static void devfs_mknod(struct cdev *cdev) > +{ > + char *path; > + int ret; > + > + if (!devfs_initialized) > + return; > + > + path = xasprintf("/dev/%s", cdev->name); > + > + if (cdev->link) > + ret = symlink(cdev->link->name, path); \o/ -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
- Re: [PATCH v2 04/13] commands: add mknod command Ahmad Fatoum
- [PATCH v2 05/13] fs: ramfs: add device file support Sascha Hauer
- [PATCH v2 01/13] fs: devfs-core: add devfs_create_link_node() Sascha Hauer
- [PATCH v2 07/13] fs: fix st_size for device files Sascha Hauer
- [PATCH v2 09/13] fs: include cdevname in struct stat Sascha Hauer
- [PATCH v2 08/13] fs: retire devfs as filesystem Sascha Hauer
- Re: [PATCH v2 08/13] fs: retire devfs as filesystem Ahmad Fatoum
- [PATCH v2 02/13] storage-by-alias: drop fake cdev Sascha Hauer
- [PATCH v2 11/13] common: cdev-alias: rename struct Sascha Hauer
- [PATCH v2 10/13] fs: stat_print: get cdevname from stat Sascha Hauer
- [PATCH v2 13/13] ls: use ~0 for FILE_SIZE_STREAM Sascha Hauer
- Re: [PATCH v2 13/13] ls: use ~0 for FILE_SIZE_STREAM Ahmad Fatoum
- [PATCH v2 12/13] fs: replace cdev links with aliases Sascha Hauer
