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.
Showing the changes to include/uapi (1 of 6 files). Show all
Unified · Split
| @@ -713,9 +713,11 @@ __SC_COMP(__NR_execveat, sys_execveat, compat_sys_execveat) · 712 unmodified lines | ||
| 713 | 713 | __SYSCALL(__NR_userfaultfd, sys_userfaultfd) |
| 714 | 714 | #define __NR_membarrier 283 |
| 715 | 715 | __SYSCALL(__NR_membarrier, sys_membarrier) |
| 716 | +#define __NR_mlock2 284 | |
| 717 | +__SYSCALL(__NR_mlock2, sys_mlock2) | |
| 716 | 718 | |
| 717 | 719 | #undef __NR_syscalls |
| 718 | −#define __NR_syscalls 284 | |
| 720 | +#define __NR_syscalls 285 | |
| 719 | 721 | |
| 720 | 722 | /* |
| 721 | 723 | * All syscalls below here should go away really, |