LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
 
Search this Thread
Old 08-11-2008, 01:41 AM   #1
hash123
LQ Newbie
 
Registered: Jul 2008
Posts: 11

Rep: Reputation: 0
Question how to create a device node in sysfs?


hi
I tried to make a device node of a device driver i have written in the /dev directory using the 'mknod' command
here it automatically creates an entry in the proc filesystem but does not create an entry in the sys filesystem.

but creating device entires in the /dev directory has a limitation that we can create a total of only 256 devices.
So now i want to create the device node in the sys filesystem instead of creating it in the /dev directory, since here we can create unlimited no of devices.

can any body tell me what is the method to do it?
 
  


Reply


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
USB device node - where is it? moistTowelette Linux - Hardware 3 08-13-2007 11:44 AM
Creating A New Device Node/Not A Valid Block Device indienick Debian 4 07-13-2007 02:07 PM
I can`t create a device node in /dev gcasados Slackware 8 02-21-2005 05:17 AM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 05:08 AM
how to create device node for dynamically allocated major number appas Programming 5 11-01-2004 09:37 AM


All times are GMT -5. The time now is 07:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration