syscall.sh / s390x / msgrcv

msgrcv

System V message queue operations

sys_msgrcv(int msqid, struct msgbuf *msgp, size_t msgsz, long msgtyp, int msgflg)
number401 (0x191)
abicommon
entry pointsys_msgrcv
sinceLinux 5.1
man pagemsgrcv(2)
sourceelixir.bootlin.com

Registers

registervalue
r1401, the syscall number
r2int msqid
r3struct msgbuf *msgp
r4size_t msgsz
r5long msgtyp
r6int msgflg
r2the return value

Then run svc 0 to enter the kernel.

Same syscall on other architectures

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