capset on riscv64

set/get capabilities of thread(s)

sys_capset(cap_user_header_t header, const cap_user_data_t data)
number91 (0x5b)
abicommon
entry pointsys_capset
sinceLinux 4.15 or earlier (4.15 is the first release scanned for riscv64)
man pagecapset(2)
sourceelixir.bootlin.com

Registers

registervalue
a791, the syscall number
a0cap_user_header_t header
a1const cap_user_data_t data
a0the return value

Then run ecall to enter the kernel.

Same syscall on other architectures

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