Hi, Le Wed, 17 May 2006 11:05:56 +0530, "Manjunath Naik" <peter.desouzain@xxxxxxxxx> a écrit : > How to use sys_mknod function call in the driver init_module. > Currently my init_module function looks like as follows. I am trying > to create a device file in my init_module itself. Creating device nodes is not the role of a kernel module. Do not call sys_mknod() from within a module. Let udev [1] do its job : « udev allows Linux users to have a dynamic /dev directory and it provides the ability to have persistent device names. » Sincerly, Thomas [1] http://www.kernel.org/pub/linux/utils/kernel/hotplug/udev.html -- Thomas Petazzoni - thomas.petazzoni@xxxxxxxx http://{thomas,sos,kos}.enix.org - http://www.toulibre.org http://www.{livret,agenda}dulibre.org -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/