[PATCH v2 08/13] fs: retire devfs as filesystem

Ahmad Fatoum a.fatoum at pengutronix.de
Mon Dec 15 03:25:20 PST 2025



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 <s.hauer at pengutronix.de>

Reviewed-by: Ahmad Fatoum <a.fatoum at pengutronix.de>

> +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 |




More information about the barebox mailing list