[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to use mknod in LKM's



hai,
    I tried mknod( ) inside an LKM,but it needs
    "/usr/include header files, which is not preferred, I hope . 
    I turned to use sys_mknod( ) in 
        "/lib/modules/`uname -r`/build/include/linux/syscalls.h". 
    When I tried to compile the LKM, it raised a warning
    " implicit declaration of function sys_mknod "

    Can any one suggest how to create a device in an LKM.
    Thanks in advance.

- kishore, packetware.



--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/