Re: iounmap() - can't always unmap memory I've mappedt

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Sep 29 2000 - 17:00:16 EST


> "num_pages" is usually just equal to 1. This code appears to work very well.
> However, when I call the iounmap function on the memory obtained via
> ioremap_nocache, sometimes I hit a kernel BUG(). The code which causes the bug
> is in page_alloc.c, line 85 (in function __free_pages_ok):
>
> if (page->buffers)
> BUG();

This sounds like you are trying to do maps on pages that are in use. No can do

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



This archive was generated by hypermail 2b29 : Sat Sep 30 2000 - 21:00:25 EST