/* * SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, struct msqid_ds __user *, buf) */ #include #include #include #include "sanitise.h" struct syscallentry syscall_msgctl = { .name = "msgctl", .num_args = 3, .arg1name = "msqid", .arg2name = "cmd", .arg2type = ARG_OP, .arg2list = { .num = 6, .values = { IPC_STAT, IPC_SET, IPC_RMID, IPC_INFO, MSG_INFO, MSG_STAT }, }, .arg3name = "buf", .arg3type = ARG_ADDRESS, }; .