lkml.org 
[lkml]   [1999]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: New snapshot of modutils
Nathan Hand wrote:
> > There's your real problem right there. If you want a device driver
> > to preserve its state, don't unload its module. Conversely, if you
> > unload a module, expect the device to be disabled.
>
> I think this attitude is the correct one. Modules are convenient because
> a system can be reconfigured for new hardware without a recompile, but I
> think it's a mistake to treat modules as some weird form of demand paged
> binary or swappable memory. It complicates issues, like preserving state
> across module reloads, and it honestly has very little benefit on modern
> machines with oodles of ram.

Better yet, why not mark a module's pages _pageable_ when the module's
ref count reaches zero? (I realise making this work is more complicated
than it sounds).

-- Jamie

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

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