![]() ![]() Lock all pages which will become mapped into the address ![]() Lock all pages which are currently mapped into the address The flags argument is constructed as the bitwise OR of one or Successfully the pages are guaranteed to stay in RAM until later All mapped pagesĪre guaranteed to be resident in RAM when the call returns Stack segment, as well as shared libraries, user space kernelĭata, shared memory, and memory-mapped files. This includes the pages of the code, data, and Mlockall() and munlockall() mlockall() locks all pages mapped into the address space of theĬalling process. After this call, all pages thatĬontain a part of the specified memory range can be moved to Munlock() unlocks pages in the address range starting at addr andĬontinuing for len bytes. If flags is 0, mlock2() behaves exactly the same as mlock(). Range so that the remaining nonresident pages are locked Lock pages that are currently resident and mark the entire The flags argument can be either 0 or the following constant: However, the state of the pagesĬontained in that range after the call returns successfully willĭepend on the value in the flags argument. Mlock2() also locks pages in the specified range starting at addrĪnd continuing for len bytes. The call returns successfully the pages are guaranteed to stay ![]() Specified address range are guaranteed to be resident in RAM when Mlock(), mlock2(), and munlock() mlock() locks pages in the address range starting at addr andĬontinuing for len bytes. Memory locking and unlocking are performed in units of whole Once more to be swapped out if required by the kernel memory Space, so that pages in the specified virtual address range may Unlocking part or all of the calling process's virtual address Munlock() and munlockall() perform the converse operation, Process's virtual address space into RAM, preventing that memory SYNOPSIS top #include int mlock(const void * addr, size_t len ) int mlock2(const void * addr, size_t len, unsigned int flags ) int munlock(const void * addr, size_t len ) int mlockall(int flags ) int munlockall(void) DESCRIPTION top mlock(), mlock2(), and mlockall() lock part or all of the calling Mlock, mlock2, munlock, mlockall, munlockall - lock and unlock ![]() MLOCK(2) Linux Programmer's Manual MLOCK(2) NAME top ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |