[systemd-devel] Udevd and dev file creation

Greg KH gregkh at linuxfoundation.org
Sun Jan 30 07:30:08 UTC 2022


On Sun, Jan 30, 2022 at 09:15:14AM +0530, Nishant Nayan wrote:
> Hi,
>      Does creating a dev file in /dev creates a uevent?

The kernel creates /dev files directly in devtmpfs.  When that happens,
yes the kernel sends a uevent.

If a user creates a /dev file on their own, no, no ueven happens.

> Does a dev file creation considered as a "device attached" to the
> machine?

Not at all, it is totally independent and does not mean that.

What problem are you having with the current kernel and /dev files?

thanks,

greg k-h


More information about the systemd-devel mailing list