[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: No owner field in bus_type?
On Monday 02 February 2004 20:26, Greg KH wrote:
> On Mon, Feb 02, 2004 at 08:18:34PM +0100, Frank.A.Uepping@t-online.de wrote:
> > Hello,
> > I am wondering, that there is no owner field in struct bus_type and
> > struct device_driver! Both have callbacks; how does the caller prevent
> > the owning module from unloading?
>
> The fact that you have to unregister the driver before being able to
> remove your module?
Yes.
However, I have compared this to the struct file_operations which has
callbacks and register/unregister functions too, and additionally an owner
field. Hence, I am wondering why the one come with an owner field whereas the
others not?
>
> thanks,
>
> greg k-h
>
> p.s. remember module unload is unsupported in the 2.6 kernel :)
Just a great dream of Rusty ;)
/FAU
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/