The Linux Process Journey — “kdevtmpfs”

“kdevtmpfs” is a kernel thread which was created using the “kthread_run” function ( “kdevtmpfs” creates a devtmpfs which is a tmpfs-based filesystem (/dev). The filesystem is created during bootup of the system, before any driver code is registered. In case a driver-core requests a device node it will result in a node added to this filesystem. (

We can see the specific line of code that is used in order to create the mounting point “/dev” ( The mountpoint is created using the function “init_mount” ( A nice fact is that it is part of “init_*” functions which are routines that mimic syscalls but don’t use file descriptors or the user address space. They are commonly used by early init code (

Thus, we can say the “kdevtmpfs” is responsible for managing the “Linux Device Tree”. Also, by default the name created for nodes under the filesystem is based on the device name (and owned by root) — as shown in the screenshot below (taken from based Linux). By the way, not all devices have a node in “/dev” think about network devices ;-)

See you in my next writeup ;-)

You can follow me on twitter — @boutnaru (



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store