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
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