[PATCH 2.4] i2c cleanups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 17, 2003 at 11:50:53PM +0200, Ky?sti M?lkki wrote:
> 
> For kernel 2.6: kobjects. This is the essentials of driver-model and
> sysfs allowing a tree-like topology of devices and drivers. Reference a
> device on the bus, and its driver and parent device are also referenced.
> In turn, this would obsolete .owner if driver-model gets more thoroughly
> implemented during 2.7 cycle. I have some compiling and running code for
> that, will post for review on holidays.

No, kobjects have _nothing_ to do with module references.  In fact,
that's the headache of module reference counts in a nutshell, kobject,
properly reference count the data structures, but the module reference
count is needed to properly protect the code itself from going away.

For files that users open within sysfs, kobjects now properly increment
the module reference count.  But for other modules that grab structures
from your module, you need to make sure the module reference counting is
correct.

Or just disable CONFIG_MODULE_UNLOAD, and not worry about it at all :)

thanks,

greg k-h



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux