[lkml]   [2001]   [Sep]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] PART1: Proposed init & module changes for 2.5
On Mon, 24 Sep 2001 14:35:54 +1000, 
Rusty Russell <> wrote:
>In message <> you write:
>> When we discussed this at in Sydney, we agreed that we
>> could call startfn after stopfn to handle the quiesce unload algorithm.
>> That handles the rmmod race without exporting mod use count to
>> everything, i.e.
> Yes, this was my original intention, but the more I thought
>about it, the more I wondered if it was worth it. In fact, my patch
>adds CONFIG_MODULE_UNLOAD, because most people don't actually need it,
>and I don't really care if most modules are not unloadable. Loading
>modules makes sense. Unloading them is pretty much an optimization.
> The reason I eventually decided to split initialization in
>this version anyway, was that so many drivers get it wrong! Things
>like registering interrupt handlers before they have set up their
>internal state, etc. Splitting it into two functions is merely a
>mechanism to get them to think about things a little harder 8)

I absolutely agree that the split between probe and register needs to
be done. The difference between calling startfn after stopfn and
forbidding that sequence is the difference between

loses race
return OK
module is still in use, user is confused


loses race
calls startfn
returns failure
module is still in use, user is happy

Allowing startfn after stopfn gives a more consistent view of the

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:03    [W:0.053 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site