[lkml]   [2003]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH][2.6][CFT] rmmod floppy kills box fixes + default_device_remove
On Mon, 8 Sep 2003, Greg KH wrote:

> You need to sleep until your release function gets called. Take a look
> at the cpufreq code for an example of this (also the i2c core does
> this.)
> > Basically i'd like a pointer as to what to do with these release()
> > functions..
> release() is called when the last reference to this device is dropped.
> When it is called it is then safe to do the following:
> - free the memory of the device
> - unload the module of the device
> So an empty release() function is the wrong thing to do in 99.99% of the
> situations in the kernel (the one exception seems to be the mca release
> function that recently got added for use when the bus is doing probing
> logic.)
> Does this help out?

Yes thanks, i was confused over which memory references had to be

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:48    [W:0.049 / U:8.972 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site