Re: freeing a static after one use only?

From: Vojtech Pavlik (vojtech@suse.cz)
Date: Fri Feb 18 2000 - 11:09:44 EST


On Fri, Feb 18, 2000 at 02:01:53PM +0000, Anton Altaparmakov wrote:
> On Fri, 18 Feb 2000, Peter T. Breuer wrote:
> [snip]
> > Modules are apparently in a space that can be swapped out. Should I
> [snip]
>
> Is that always the case? - Or would it happen only if the ref count is 0?
>
> I'm asking because I am currently writting a driver for a pci card (just
> started) and if the module were to be swapped out when it was doing a
> busmaster transfer I could imagine the computer crashing...I am sure this
> would be the case with most modules providing important hwaccess system
> services.
>
> Sorry if the answer to my question is obvious but I am fairly new to
> linux kernel development. - Feel free to point out where I can find some
> information about this...

Modules can't be swapped out. They're kernel. Imagine a module for SCSI
being swapped out on a SCSI disk. No way to get it back. ;)

-- 
Vojtech Pavlik
SuSE Labs

- 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/



This archive was generated by hypermail 2b29 : Wed Feb 23 2000 - 21:00:21 EST