Messages in this thread | | | From | Daniel Phillips <> | Subject | Re: [OKS] Module removal | Date | Mon, 8 Jul 2002 08:22:28 +0200 |
| |
On Monday 08 July 2002 02:46, Jamie Lokier wrote: > Bill Davidsen wrote: > > I think you have to do it with the use count, and there may well be > > modules you can't remove safely. > > I agree, this is the correct and clean thing to do. > > It rather implies that any function in a module which calls > MOD_{INC,DEC}_USE_COUNT should always be called from a non-module > function which _itself_ protects the module from removal by temporarily > bumping the use count.
That's not nice. It requires the calling code to know it's calling a module and it imposes the inc/dec overhead on callers even when the target isn't compiled as a module.
-- Daniel - 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/
| |