]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Define kernel internal resource limit syscalls
authorSergiu Moga <sergiu@unikraft.io>
Thu, 13 Feb 2025 14:39:15 +0000 (16:39 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Thu, 13 Feb 2025 16:51:07 +0000 (16:51 +0000)
commitd40b2dca337acf4eee3407a7bbd8b97469cba53f
treeff6bb35d295fb56b57eee9eca234f749a4b4188c
parent1434864988dbbea21039d2c20f3f02e28385c6b1
lib/posix-process: Define kernel internal resource limit syscalls

Add the kernel internal variants of `prlimit64`, `getrlimit` and
`setrlimit`: `uk_sys_prlimit64`, `uk_sys_getrlimit` and
`uk_sys_setrlimit` respectively.
This allows kernel internal code to call these system calls' logic
without having the syscall shim wrapper logic intervene.

Note how only `uk_sys_prlimit64` has been added to `exportsyms.uk`
since the others are defined as inline.

Signed-off-by: Sergiu Moga <sergiu@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1584
lib/posix-process/deprecated.c
lib/posix-process/exportsyms.uk
lib/posix-process/include/uk/process.h