Lines Matching refs:mlock

49  * Those mapped into VM_LOCKED [mlock()ed] VMAs.
172 the page tables for the region as does, for example, mlock(), nor need it make
192 list at mlock() or mmap() time, vmscan will not encounter the pages until they
222 The unevictable page list is also useful for mlock(), in addition to ramfs and
223 SYSV SHM. Note that mlock() is only available in CONFIG_MMU=y situations; in
259 (1) in the mlock()/mlockall() system call handlers;
289 mlock()/mlockall() System Call Handling
292 Both [do\_]mlock() and [do\_]mlockall() system call handlers call mlock_fixup()
295 is used for both mlocking and munlocking a range of memory. A call to mlock()
312 migrated out from under us, while we're trying to mlock it. To detect this,
348 neither need nor want to mlock() these pages. However, to preserve the
349 prior behavior of mlock() - before the unevictable/mlock changes -
370 do_mlock[all]() - as the mlock() and mlockall() system calls with the unlock vs
379 populate_vma_page_range() - the same function used to mlock a VMA range -
423 This has been discussed from the mlock/munlock perspective in the respective
454 If a user tries to mlock() part of a huge page, we want the rest of the
457 We cannot just split the page on partial mlock() as split_huge_page() can
472 In addition the mlock()/mlockall() system calls, an application can request
474 call. There is one important and subtle difference here, though. mmap() + mlock()
482 in the newly mapped memory being mlocked. Before the unevictable/mlock
486 To mlock a range of memory under the unevictable/mlock infrastructure, the
488 populate_vma_page_range() specifying the vma and the address range to mlock.
506 Before the unevictable/mlock changes, mlocking did not mark the pages in any
509 To munlock a range of memory under the unevictable/mlock infrastructure, the
544 VMA, it will then mlock the page via mlock_vma_page() instead of unmapping it,
549 to the page lock, and the rmap lock): to serialize against concurrent mlock or
565 page. For this purpose, the unevictable/mlock infrastructure
572 the functions mlock the page via mlock_vma_page() and return SWAP_MLOCK. This