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 |


Reply via email to