History

mm: mlock: add new mlock system call

With the refactored mlock code, introduce a new system call for mlock. The new call will allow the user to specify what lock states are being added. mlock2 is trivial at the moment, but a follow on patch will add a new mlock state making it useful.

Eric B Munson committed 11 years ago

Commit a8ca5d01 parent 1aab92e6 files · +16 −1Browse files

Showing the changes to include/uapi (1 of 6 files). Show all

Unified · Split

include/uapi/asm-generic/unistd.h+3−1
@@ -713,9 +713,11 @@ __SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat) · 712 unmodified lines
713__SYSCALL(__NR_userfaultfd, sys_userfaultfd)713__SYSCALL(__NR_userfaultfd, sys_userfaultfd)
714#define __NR_membarrier 283714#define __NR_membarrier 283
715__SYSCALL(__NR_membarrier, sys_membarrier)715__SYSCALL(__NR_membarrier, sys_membarrier)
716#define __NR_mlock2 284
717__SYSCALL(__NR_mlock2, sys_mlock2)
716 718
717#undef __NR_syscalls719#undef __NR_syscalls
718#define __NR_syscalls 284720#define __NR_syscalls 285
719 721
720/*722/*
721 * All syscalls below here should go away really,723 * All syscalls below here should go away really,