From the course: Exploring Linux Internals: Advanced Insights and Practical Applications

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Systemd-udevd

Systemd-udevd

- A very important part in hardware handling on modern Linux is systemd-udevd. So systemd-udevd can be considered the plug-and-play manager on Linux. In fact, even before systemd-udevd did exist, but systemd has just adopted and integrated it. Now when hardware events are detected, udevd processes rules to initialize devices. And these rules determine what exactly is going to happen with your devices. To learn what is happening, you can follow the process using udevadm monitor. The Linux kernel initiates device loading, and then sends out uevents to the systemd-udevd user space daemon. Systemd-udevd catches the event and decides how to handle it based on attributes that it has received in the event. And next, it reads its rules and acts based on these rules. There's default rules in /usr/lib/udev/rules.d. You can also create custom rules in /etc/udev/rules.d. And the results can be monitored through the /sys filesystem. Now let's have a look at what udevd is doing when you plug in a…

Contents