2001-11-16 08:38:27

by Pavel Machek

[permalink] [raw]
Subject: __get_free_pages but no get_free_pages?

Hi!

free_pages() exists.
__get_free_pages() exists.
get_free_pages() does not. Why? What's the reason get_free_pages
always has two underscores at the beggining?
Pavel
--
STOP THE WAR! Someone killed innocent Americans. That does not give
U.S. right to kill people in Afganistan.



2001-11-16 11:30:28

by Martin Dalecki

[permalink] [raw]
Subject: Re: __get_free_pages but no get_free_pages?

Pavel Machek wrote:
>
> Hi!
>
> free_pages() exists.
> __get_free_pages() exists.
> get_free_pages() does not. Why? What's the reason get_free_pages
> always has two underscores at the beggining?

That's purposedly so to discourage the usage of it, since this
function should be considered as an "implementation detail" I think.

> --
> STOP THE WAR! Someone killed innocent Americans. That does not give
> U.S. right to kill people in Afganistan.

That where not just Americans who died there.
The best way to stop a war is sometimes just to win it fast.

2001-11-16 14:27:00

by David Woodhouse

[permalink] [raw]
Subject: Re: __get_free_pages but no get_free_pages?


[email protected] said:
> That's purposedly so to discourage the usage of it, since this
> function should be considered as an "implementation detail" I think.

An implementation detail that should be hidden from generic code.
Like the fact that we use slabs for malloc?

--
dwmw2