LinuxQuestions.org
Visit Jeremy's Blog.
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 02-16-2012, 01:45 AM   #1
dennisdd
Member
 
Registered: Oct 2011
Posts: 37

Rep: Reputation: Disabled
Linux driver development procfs or dev file?


Something bother me all the time while learning about linux kernel.
I have done some example tryout on /dev type of file vs /procfs.

Currently from my point of view seem like /procfs is more easy to use/implement.
There no need to "mknod" or assign major dev number. I love the idea it is dynamically assigned.
With seeing some of the tutorials, I didn't find where it is mention how the mknod is automated for devices.

I have been bothered by this should I be using /dev or /procfs types?
What any specification that dictate which must we use?

My project, I'm doing some data buffering driver from devices to application layer.
There also a SPI comm beside the data buffering port(almost similar to the video streaming ports).

But how does a SPI+/dev or SPI+/proc types? or can we combine that in the single driver file?
 
Old 02-16-2012, 09:39 PM   #2
liberalchrist
Member
 
Registered: Jun 2011
Location: Clover, SC
Distribution: Slackware Current & FreeBSD
Posts: 122

Rep: Reputation: 26
I am not altogether sure what you are asking and am probably not the best person to help you, but I don't like to see threads unanswered. The /dev hierarchy is also now dynamically populated by udev. Users are always direct to /dev for info about their programs and udev can be overridden to provide consistent interfaces with udev rules. It seems to me that drivers would be better served with consistent interfaces as well. I believe that procfs is quite random in its assignments of process id's and would therefore be difficult, if not impossible, to manage. Hopefully, someone who really understands this will post a better reply.
 
1 members found this post helpful.
  


Reply

Tags
kernel, linux


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
Difference between device driver development and linux application development tennythomas Linux - Hardware 3 10-26-2011 08:52 AM
Linux Driver Development anroy Programming 3 05-12-2011 08:00 PM
Linux Driver - how to read/write a block or character device in kernel space (procfs) stybi Linux - Kernel 1 01-27-2011 07:26 AM
LM Sensors Help, Can't access procfs/sysfs file Unable to find i2c bus information; Whiskers Linux - Software 16 11-03-2008 05:58 PM
lm_sensors Can't access procfs/sysfs file humbletech99 Linux - Hardware 0 08-31-2006 07:40 AM


All times are GMT -5. The time now is 07:38 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