sys_munlock [mm/mlock.c]
Unlocks part of the calling process's virtual address space, so that pages in the specified virtual address range may once more to be swapped out if required by the kernel memory manager. Arguments
eax | 151
ebx | Starting address of a memory range to unlock.
ecx | Length of the memory range specified by ebx.
Return values If the system call succeeds the return value is 0. If the system call fails the return value is one of the following errno values:
`-ENOMEM` | `(Linux 2.6.9 and later) the caller had a non-zero RLIMIT_MEMLOCK soft resource limit, but tried to lock more memory than the limit permitted. This limit is not enforced if the process is privileged (CAP_IPC_LOCK). -or- Some of the specified address range does not correspond to mapped pages in the address space of the process.`
`-EPERM` | `(Linux 2.6.9 and later) the caller was not privileged (CAP_IPC_LOCK) and its RLIMIT_MEMLOCK soft resource limit was 0.`
`-EINVAL` | `ecx was negative.`
Remarks See sys_mlock for more information about memory locking. Compatibility n/a