What will Linux kernel do after sys_brk
- From: "Bin Chen" <binary.chen@xxxxxxxxx>
- Date: 22 Mar 2007 08:20:14 -0700
I am just reading the source code regarding do_brk, which is called by
sys_brk when user space program need to larger its heap.
I don't know whether my understanding is correct, and some points are
not very clear.
do_brk try to find an vma to enlarge or new a vma for the new heap.
But I don't see any code doing the page table setup and page
allocation from the buddy system. Is it a copy-on-write?
If it is copy-on-write, when the user space program first write to the
heap, which page fault handler will be called? do_anonymous_page? And
if it s COW, each time a page fault only one page will be mapped?
.
- Prev by Date: Re: Linux kernel, possible useless continue
- Next by Date: Re: kernel: Bad page state in process 'cc1'
- Previous by thread: hi...iam a student from nit warangal india plz help me in linux encrypted file system project...
- Next by thread: Re: kernel: Bad page state in process 'cc1'
- Index(es):