LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-15-2010, 03:18 AM   #1
prakashgkk
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
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
 
Old 04-16-2010, 06:18 PM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Is there any reason why red writing is better than normal ?

answers on a postcard please.
 
  


Reply

Tags
device


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a device driver for user applications trkecea Programming 3 02-07-2010 10:12 AM
RIP v2, OSPF dynamically adding and removing nodes saiyen2002 Linux - Networking 1 12-03-2009 10:33 PM
Dynamic nodes for device driver ashok449 Linux - Kernel 1 03-31-2008 06:30 AM
udev doesn't create scd* device nodes for scsi cdrom kejava Slackware 3 09-15-2005 03:04 PM
how to create device node for dynamically allocated major number appas Programming 5 11-01-2004 10:37 AM


All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration