LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:26 PM.

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
Open Source Consulting | Domain Registration