syscall.sh / x86 / msgrcv

msgrcv

System V message queue operations

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

Registers

registervalue
eax401, the syscall number
ebxint msqid
ecxstruct msgbuf *msgp
edxsize_t msgsz
esilong msgtyp
ediint msgflg
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/msgrcv