LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-13-2010, 02:17 PM   #1
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321
Blog Entries: 1

Rep: Reputation: 31
sysfs / udev. How do they work together?


Preparing myself for LPI 101 exam I found a doubt on how Linux manages mounting hardware device on the fly (example flash memory sticks, printer, others storage device, etc). This question isn't LPI specific, I'd just to know a little bit more on this subject.

I think, formerly this task was done by devfs, hotplug and later by hotplug and udev. Am I right? From kernel 2.6 Linux uses SYSFS and udev. Any other piece of software takes care of mounting devices on the fly?

I know the basis use of udev. It's used to "stick" certain device to a certain node (ex. /dev/mydevice) in order to keep that name fixed.
I'd like to know a little more on how sysfs works. Does anybody knows a good source which I could consult?

Thanks in advance, regards,
Matías
 
Old 06-13-2010, 04:17 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Have a look in the kernel source tree at Documentation/sysfs-rules.txt and Documentation/filesystems/sysfs*txt and http://www.kernel.org/pub/linux/kern...005/mochel.pdf as well.
 
Old 06-13-2010, 08:39 PM   #3
matiasar
Member
 
Registered: Nov 2006
Location: Argentina
Distribution: Debian
Posts: 321

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thanks a lot for resources Didier! pdf from Patrick Mochel seems very good. I'll read them tomorrow.

Regards,
Matías
 
  


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
[SOLVED] "udev: missing sysfs features; update kernel or ..." gregorian Linux - Newbie 5 12-23-2009 06:08 PM
udev RUN+= doesn't seem to work PlancksCnst Linux - General 18 05-15-2007 06:44 PM
usb won't work with udev dinolinux Linux - Software 4 06-14-2006 10:21 AM
sysfs and udev lost my cdrom devices cexshun Linux - Hardware 0 09-11-2004 06:23 PM
Sysfs, Udev, Proc, Devfs...what the frick? matthurne Linux - Hardware 1 02-24-2004 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:32 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
Open Source Consulting | Domain Registration