Re: Address spaces on a i386 - Getting Confused

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 30 Mar 1999 15:28:46 +0100 (BST)


> David Miller writes:
> > Date: Tue, 30 Mar 1999 22:36:04 +1000
> > From: Richard Gooch <rgooch@atnf.csiro.au>
> >
> > ??? Pages returned by kmalloc() or get_free_page() aren't
> > swappable.
> >
> > Brain fart, sorry. He will however have to make sure he free's up the
> > pages when the device is closed because the kernel isn't going to do
> > it during normal address space destruction.
>
> Or perhaps that could be done in the unmap() vm_ops method?

The release handler in 2.1.x/2.2.x is called after the last close & all
mappings are gone for exactly this reason

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