LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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


Closed Thread
  Search this Thread
Old 04-24-2007, 04:36 AM   #1
chessi
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Rep: Reputation: 0
Sysfs info


Hi All

I want to pass certain information from the user space to my driver, whenever the user apps. open my driver.
I have considered 2 options:
1. Call an ioctl to my device with the data I want to pass.
2. Use the sysfs FS.

But I am not sure about the procedure to create a sysfs entry for my driver, and how to access it from kernel space, how to write into it from User space etc...

Can anyone provide a pointer to this. Sorry if it has already been answered, I tried to search but could find relevant post.

Thanks
 
Old 04-24-2007, 04:37 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
Old 04-24-2007, 04:41 AM   #3
chessi
LQ Newbie
 
Registered: Apr 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Ok, sorry!
 
Old 04-24-2007, 03:53 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
This thread is closed. The one in Kernel remains open: http://www.linuxquestions.org/questi...d.php?t=548542
 
  


Closed Thread


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
How to use sysfs? asahlot Linux - Kernel 1 01-21-2007 03:44 PM
sysfs call rajesh_b Programming 1 07-13-2006 08:47 AM
Mounting sysfs ? mystique98ls Linux - Newbie 4 07-15-2005 11:33 AM
kernel 2.4.26 and sysfs rgiggs Mandriva 2 06-03-2004 08:32 PM
mounting sysfs chichibabin Mandriva 3 02-13-2004 12:48 PM

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

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