lkml.org 
[lkml]   [2010]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH] device-core: sysfs open - close notify
* Onkalo Samu <samu.p.onkalo@nokia.com> wrote:

<snip />

Perhaps it also could be an more generic event notification op,
where some event id or bitmask tells what actually happened ?
Something like:

...
void (*notify)(struct kobject *, struct attribute *, int event, void * param);
...

That would at least save one ptr of space and can be extended for
other stuff later.


cu
--
----------------------------------------------------------------------
Enrico Weigelt, metux IT service -- http://www.metux.de/

phone: +49 36207 519931 email: weigelt@metux.de
mobile: +49 151 27565287 icq: 210169427 skype: nekrad666
----------------------------------------------------------------------
Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------


\
 
 \ /
  Last update: 2010-11-16 04:31    [W:0.022 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site