[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
get_unmapped_area
Hi All,
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 ??
unsigned long get_unmapped_area(unsigned long addr, unsigned long len)
{
struct vm_area_struct * vmm;
if (len > TASK_SIZE)
return 0;
if (!addr)
addr = TASK_UNMAPPED_BASE;
addr = PAGE_ALIGN(addr);
Thanks in advance,
Supreeth.
-
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.surriel.com/kernelnewbies.shtml