Lines Matching refs:msgp
765 safe_syscall4(int, msgsnd, int, msgid, const void *, msgp, size_t, sz,
769 safe_syscall5(int, msgrcv, int, msgid, void *, msgp, size_t, sz,
3271 static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
3280 if (msgp->msg_name) {
3281 msg.msg_namelen = tswap32(msgp->msg_namelen);
3284 tswapal(msgp->msg_name),
3300 msg.msg_controllen = 2 * tswapal(msgp->msg_controllen);
3304 msg.msg_flags = tswap32(msgp->msg_flags);
3306 count = tswapal(msgp->msg_iovlen);
3307 target_vec = tswapal(msgp->msg_iov);
3343 ret = target_to_host_cmsg(&msg, msgp);
3357 ret = host_to_target_cmsg(msgp, &msg);
3360 msgp->msg_namelen = tswap32(msg.msg_namelen);
3361 msgp->msg_flags = tswap32(msg.msg_flags);
3363 ret = host_to_target_sockaddr(tswapal(msgp->msg_name),
3387 struct target_msghdr *msgp;
3390 msgp,
3395 ret = do_sendrecvmsg_locked(fd, msgp, flags, send);
3396 unlock_user_struct(msgp, target_msg, send ? 0 : 1);
4295 static inline abi_long do_msgsnd(int msqid, abi_long msgp,
4306 if (!lock_user_struct(VERIFY_READ, target_mb, msgp, 0))
4310 unlock_user_struct(target_mb, msgp, 0);
4331 unlock_user_struct(target_mb, msgp, 0);
4350 static inline abi_long do_msgrcv(int msqid, abi_long msgp,
4363 if (!lock_user_struct(VERIFY_WRITE, target_mb, msgp, 0))
4383 abi_ulong target_mtext_addr = msgp + sizeof(abi_ulong);
4397 unlock_user_struct(target_mb, msgp, 1);
4591 abi_long msgp;
4600 ret = do_msgrcv(first, tswapal(tmp->msgp), second, tswapal(tmp->msgtyp), third);