Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 6 of 6) sorted by relevance

/ipc/
Dmsgutil.c50 struct msg_msg *msg; in alloc_msg() local
55 msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL); in alloc_msg()
56 if (msg == NULL) in alloc_msg()
59 msg->next = NULL; in alloc_msg()
60 msg->security = NULL; in alloc_msg()
63 pseg = &msg->next; in alloc_msg()
76 return msg; in alloc_msg()
79 free_msg(msg); in alloc_msg()
85 struct msg_msg *msg; in load_msg() local
90 msg = alloc_msg(len); in load_msg()
[all …]
Dmsg.c214 struct msg_msg *msg, *t; in freeque() local
223 list_for_each_entry_safe(msg, t, &msq->q_messages, m_list) { in freeque()
225 free_msg(msg); in freeque()
547 static int testmsg(struct msg_msg *msg, long type, int mode) in testmsg() argument
554 if (msg->m_type <= type) in testmsg()
558 if (msg->m_type == type) in testmsg()
562 if (msg->m_type != type) in testmsg()
569 static inline int pipelined_send(struct msg_queue *msq, struct msg_msg *msg) in pipelined_send() argument
574 if (testmsg(msg, msr->r_msgtype, msr->r_mode) && in pipelined_send()
575 !security_msg_queue_msgrcv(msq, msg, msr->r_tsk, in pipelined_send()
[all …]
Dmqueue.c62 struct msg_msg *msg; /* ptr of loaded message */ member
121 static int msg_insert(struct msg_msg *msg, struct mqueue_inode_info *info) in msg_insert() argument
131 if (likely(leaf->priority == msg->m_type)) in msg_insert()
133 else if (msg->m_type < leaf->priority) in msg_insert()
147 leaf->priority = msg->m_type; in msg_insert()
152 info->qsize += msg->m_ts; in msg_insert()
153 list_add_tail(&msg->m_list, &leaf->msg_list); in msg_insert()
161 struct msg_msg *msg; in msg_get() local
196 msg = list_first_entry(&leaf->msg_list, in msg_get()
198 list_del(&msg->m_list); in msg_get()
[all …]
Dutil.h151 extern void free_msg(struct msg_msg *msg);
154 extern int store_msg(void __user *dest, struct msg_msg *msg, size_t len);
DMakefile6 obj-$(CONFIG_SYSVIPC) += util.o msgutil.o msg.o sem.o shm.o ipcns_notifier.o syscall.o
Dcompat.c310 static long compat_do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) in compat_do_msg_fill() argument
315 if (put_user(msg->m_type, &msgp->mtype)) in compat_do_msg_fill()
318 msgsz = (bufsz > msg->m_ts) ? msg->m_ts : bufsz; in compat_do_msg_fill()
319 if (store_msg(msgp->mtext, msg, msgsz)) in compat_do_msg_fill()