syscall.sh / x86 / prlimit64

prlimit64

get/set resource limits

sys_prlimit64(pid_t pid, unsigned int resource, const struct rlimit64 *new_rlim, struct rlimit64 *old_rlim)
number340 (0x154)
abii386
entry pointsys_prlimit64
sinceLinux 3.3
man pageprlimit64(2)
sourceelixir.bootlin.com

Registers

registervalue
eax340, the syscall number
ebxpid_t pid
ecxunsigned int resource
edxconst struct rlimit64 *new_rlim
esistruct rlimit64 *old_rlim
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/prlimit64