syscall.sh / sh / prlimit64

prlimit64

get/set resource limits

sys_prlimit64(pid_t pid, unsigned int resource, const struct rlimit64 *new_rlim, struct rlimit64 *old_rlim)
number339 (0x153)
abicommon
entry pointsys_prlimit64
sinceLinux 5.0
man pageprlimit64(2)
sourceelixir.bootlin.com

Registers

registervalue
r3339, the syscall number
r4pid_t pid
r5unsigned int resource
r6const struct rlimit64 *new_rlim
r7struct rlimit64 *old_rlim
r0the return value

Then run trapa #31 to enter the kernel.

Same syscall on other architectures

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