lkml.org 
[lkml]   [2004]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC] sysfs kobject that doesn't trigger hotplug events
Dmitry Torokhov wrote:

> You are wasting 4 bytes for every kobject out there. Just implement your
> private hotplug callback that would return something like -ENODEV so the
> hotplug helper would not be called. If needed you can call
> kobject_hotplug
> later, when you are ready.



Actually for every kobj_type structure, not for every kobject. Doing a
quick scan through the kernel I found 25 kobj_type decelerations so that
would add up to 100 bytes only. And that could be made a byte or flags
field.

I wasn't sure if it was possible to create a subsystem that wasn't a
part of the sysfs tree that contained kobjects that were. Looking
trough the code again it looks like it is so I'll use the hotplug filter
as you suggest.

John


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.089 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site