sysfs question

2 messages, 2 authors, 2006-07-28 · open the first message on its own page

sysfs question

From: Dennis Munsie <hidden>
Date: 2006-07-24 13:45:54

quick question regarding sysfs and the framebuffer... I can add my  
own attributes without any problems, but they always show up with the  
device (/sys/class/graphics/fb0/device), not the rest of the  
framebuffer attributes (/sys/class/graphics/fb0).  Is there a good  
way to put them with the fb attributes?  or is this a no-no?

thanks!
dennis

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Re: sysfs question

From: Luca <hidden>
Date: 2006-07-28 21:56:51

Il Mon, Jul 24, 2006 at 09:47:59AM -0400, Dennis Munsie ha scritto: 
quick question regarding sysfs and the framebuffer... I can add my  
own attributes without any problems, but they always show up with the  
device (/sys/class/graphics/fb0/device), not the rest of the  
framebuffer attributes (/sys/class/graphics/fb0). Is there a good  
way to put them with the fb attributes?
You have to attach the new attributes to the class_device instead of the
device. See class_device_create_file().
I don't know if it's a good idea tough: if the attributes are specific
to only one device it sounds more logical to attach them to the device.

Luca
-- 
Home: http://kronoz.cjb.net
"L'ottimista pensa che questo sia il migliore dei mondi possibili. 
 Il pessimista sa che e` vero" -- J. Robert Oppenheimer

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help