ts-7000
[Top] [All Lists]

[ts-7000] Stuck creating a sysfs entry for a driver on 2.6 kernels

To:
Subject: [ts-7000] Stuck creating a sysfs entry for a driver on 2.6 kernels
From: Kaiwan N Billimoria <>
Date: Mon, 13 Feb 2006 12:44:10 +0530
Hello All,

First off, I know that this group is not exactly the right place to post 
this query, but a) it's a bit urgent b) the usual googling did not help 
much in this case (at least for me!) and c) i know you guys are good 
;-)  ..really.

I am in the process of porting a 2.4 temperature sensor device driver to 
the 2.6 Linux kernel (specifically to v 2.6.15.3). All ok, except that I 
want to insert an entry in /sys instead of /proc for the driver (as that 
is suggested as the new "correct" interface..).

I have read some documentation on sysfs and Rubini's lddbus example in 
the LDD3 book; however, i am still a little confused: do we really need 
to create a new /sys/bus/<driver_name> for each device inserted into the 
lernel at runtime? if (probably) not, where _exactly_ do i create my 
entry, and of course, _how _ exactly? have any of you done this or come 
across sample code/tutorial out there that demonstrates just this? 
Request your help as i'm stuck here...

TIA,
kaiwan.



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


<Prev in Thread] Current Thread [Next in Thread>
  • [ts-7000] Stuck creating a sysfs entry for a driver on 2.6 kernels, Kaiwan N Billimoria <=
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU