Linux Kernel Architecture
Chapter 4: Virtual Process Memory ... newbrk = PAGE_ALIGN(brk); oldbrk = PAGE_ALIGN(mm->brk); ... This code ensures that the ...
Chapter 4: Virtual Process Memory 4.10 Handling of Page Faults The association between virtual and physical memory is not establ ...
Chapter 4: Virtual Process Memory same name is present in the architecture-specific sources of most CPUs.16,17)Figure4-18showsth ...
Chapter 4: Virtual Process Memory struct vm_area_struct * vma; unsigned long address; unsigned long page; int write, si_code; in ...
Chapter 4: Virtual Process Memory */ goto bad_area_nosemaphore; } ... Avmallocfault is indicated if the address is outside usera ...
Chapter 4: Virtual Process Memory arch/i386/mm/fault.c vma = find_vma(mm, address); if (!vma) goto bad_area; if (vma->vm_star ...
Chapter 4: Virtual Process Memory The presence of a mapping for the fault address does not necessarily mean that access is actua ...
Chapter 4: Virtual Process Memory access to data fails for whatever reason — for instance, if a mapping is accessed but has been ...
Chapter 4: Virtual Process Memory Parts of nonlinear mappings that have been swapped out cannot be swapped in like regular page ...
Chapter 4: Virtual Process Memory Write access on private page? Only vma->vm_ops->nopage available? Allocate page Write ac ...
Chapter 4: Virtual Process Memory /* * Should we do an early C-O-W break? */ if (flags & FAULT_FLAG_WRITE) { if (!(vma->v ...
Chapter 4: Virtual Process Memory 4.11.3 Copy on Write Copy on write is handled indo_wp_page, whose code flow diagram is shown i ...
Chapter 4: Virtual Process Memory 4.11.4 Getting Nonlinear Mappings Page fault handling for nonlinear mappings is much shorter t ...
Chapter 4: Virtual Process Memory Copying is performed by various central functions, such ascopy_from_user, which is discussed i ...
Chapter 4: Virtual Process Memory When a fixup routine is found, the instruction pointer is set to the corresponding memory loca ...
Chapter 4: Virtual Process Memory 4.13 Copying Data between Kernel and Userspace The kernel often needs to copy data from usersp ...
Chapter 4: Virtual Process Memory Table 4-3: Standard Functions for Working with Strings in Userspace Data Function Meaning clea ...
Chapter 4: Virtual Process Memory linear and nonlinear memory mappings. Besides, theyare connected with paging, which helps to m ...
Locking and Interprocess Communication As a multitasking system, Linux is able to run several processes at the same time. Normal ...
Chapter 5: Locking and Interprocess Communication Chapter 5: Locking and InterprocessCommunication....................... 5.1 Co ...
«
14
15
16
17
18
19
20
21
22
23
»
Free download pdf