LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dynamically create/delete device nodes by driver (https://www.linuxquestions.org/questions/linux-newbie-8/dynamically-create-delete-device-nodes-by-driver-802110/)

prakashgkk 04-15-2010 02:18 AM

dynamically create/delete device nodes by driver
 
Hi all,

I'm a starter here in linux, I have written a driver code and in that, I register my character devices by passing 0 for the major number.

To set up I used to use mknod command from terminal to create node,

Is there any method to create node dynamically from driver code during initialization and delete them at cleanup time?? Kindly let me know.


With regards,
Prakash A Manannavar

smoker 04-16-2010 05:18 PM

Is there any reason why red writing is better than normal ?

answers on a postcard please.


All times are GMT -5. The time now is 09:39 PM.