Home
last modified time | relevance | path

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

/ipc/
Dmsgutil.c48 struct msg_msg *msg; in alloc_msg() local
53 msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL_ACCOUNT); in alloc_msg()
54 if (msg == NULL) in alloc_msg()
57 msg->next = NULL; in alloc_msg()
58 msg->security = NULL; in alloc_msg()
61 pseg = &msg->next; in alloc_msg()
77 return msg; in alloc_msg()
80 free_msg(msg); in alloc_msg()
86 struct msg_msg *msg; in load_msg() local
91 msg = alloc_msg(len); in load_msg()
[all …]
Dmsg.c276 struct msg_msg *msg, *t; in freeque() local
287 list_for_each_entry_safe(msg, t, &msq->q_messages, m_list) { in freeque()
289 free_msg(msg); in freeque()
788 static int testmsg(struct msg_msg *msg, long type, int mode) in testmsg() argument
795 if (msg->m_type <= type) in testmsg()
799 if (msg->m_type == type) in testmsg()
803 if (msg->m_type != type) in testmsg()
810 static inline int pipelined_send(struct msg_queue *msq, struct msg_msg *msg, in pipelined_send() argument
816 if (testmsg(msg, msr->r_msgtype, msr->r_mode) && in pipelined_send()
817 !security_msg_queue_msgrcv(&msq->q_perm, msg, msr->r_tsk, in pipelined_send()
[all …]
Dmqueue.c130 struct msg_msg *msg; /* ptr of loaded message */ member
193 static int msg_insert(struct msg_msg *msg, struct mqueue_inode_info *info) in msg_insert() argument
204 if (likely(leaf->priority == msg->m_type)) in msg_insert()
206 else if (msg->m_type < leaf->priority) { in msg_insert()
221 leaf->priority = msg->m_type; in msg_insert()
230 info->qsize += msg->m_ts; in msg_insert()
231 list_add_tail(&msg->m_list, &leaf->msg_list); in msg_insert()
254 struct msg_msg *msg; in msg_get() local
280 msg = list_first_entry(&leaf->msg_list, in msg_get()
282 list_del(&msg->m_list); in msg_get()
[all …]
Dutil.h196 extern void free_msg(struct msg_msg *msg);
199 extern int store_msg(void __user *dest, struct msg_msg *msg, size_t len);
DMakefile7 obj-$(CONFIG_SYSVIPC) += util.o msgutil.o msg.o sem.o shm.o syscall.o