LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-18-2012, 03:40 AM   #1
unifoxz
LQ Newbie
 
Registered: Dec 2011
Posts: 19

Rep: Reputation: Disabled
Question viewing sysfs architecture from userpace - how?


From userspace, we can see the sysfs tree structure in kernel.
Can anyone give me the idea how does this information show up in the userspace?

Thank you.
 
Old 01-20-2012, 02:32 AM   #2
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Rep: Reputation: 32
There must be sysfs driver support in kernel space.
Sysfs works in coordination with udev and hal, to export device information from kernel space to user space.
 
Old 01-20-2012, 07:33 AM   #3
unifoxz
LQ Newbie
 
Registered: Dec 2011
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thanks Barun.

How about the /sys contents displayed on the terminal?
How does it get printed on the terminal in userspace?
 
Old 01-20-2012, 09:33 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Each of these various "virtual" file systems presents a set of "files" and "directories" that do not actually exist. When you "read" them, a subroutine in the kernel is responsible for creating the output that you see.
 
  


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
sysfs animesh Linux - Newbie 1 08-16-2011 03:38 AM
how can i port a driver with a specific architecture into another architecture? the hope Linux - Hardware 4 03-23-2011 05:39 PM
what is 'architecture' in 'binary for an architecture'?multiple architecture support? wagaboy Linux - Newbie 2 07-10-2010 11:18 AM
Sysfs use chessi Linux - Kernel 1 04-24-2007 03:59 PM
How to use sysfs? asahlot Linux - Kernel 1 01-21-2007 03:44 PM

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

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