[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get_unmapped_area



On Sun, 1 Apr 2001, A. Supreeth Reddy wrote:

> 	The function which is used to get unmapped process address space
> sets the "addr" to PAGE_OFFSET/3 i.e., 1 GB, in case addr equals NULL.
> Why is the search started off at 1 GB ? Any specific reason for that ??

The mmap() region in process virtual memory starts at 1GB.

An address of NULL means "I don't care what address you
put the mapping on", in which case the kernel will find
a suitable address between 1 and 3 GB for you to have the
thing mapped.

regards,

Rik
--
Virtual memory is like a game you can't win;
However, without VM there's truly nothing to lose...

		http://www.surriel.com/
http://www.conectiva.com/	http://distro.conectiva.com.br/

-
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/