Re: free_memory_available()

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 28 Dec 1998 02:45:10 +0000 (GMT)


> page_alloc.c, line 103
> : int free_memory_available(void)
> : {
> : static int available = 1;
^^^^^^
That bit is important

> Have I gone mad (unlikely but possible) and there /is/ a reason to assign
> a value to a local var and then immediately, unconditionally return?!

Its persistent across calls

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