Searched refs:msg (Results 1 – 5 of 5) sorted by relevance
/ipc/ |
D | msgutil.c | 48 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 …]
|
D | msg.c | 255 struct msg_msg *msg, *t; in freeque() local 266 list_for_each_entry_safe(msg, t, &msq->q_messages, m_list) { in freeque() 268 free_msg(msg); in freeque() 766 static int testmsg(struct msg_msg *msg, long type, int mode) in testmsg() argument 773 if (msg->m_type <= type) in testmsg() 777 if (msg->m_type == type) in testmsg() 781 if (msg->m_type != type) in testmsg() 788 static inline int pipelined_send(struct msg_queue *msq, struct msg_msg *msg, in pipelined_send() argument 794 if (testmsg(msg, msr->r_msgtype, msr->r_mode) && in pipelined_send() 795 !security_msg_queue_msgrcv(&msq->q_perm, msg, msr->r_tsk, in pipelined_send() [all …]
|
D | mqueue.c | 69 struct msg_msg *msg; /* ptr of loaded message */ member 131 static int msg_insert(struct msg_msg *msg, struct mqueue_inode_info *info) in msg_insert() argument 142 if (likely(leaf->priority == msg->m_type)) in msg_insert() 144 else if (msg->m_type < leaf->priority) { in msg_insert() 159 leaf->priority = msg->m_type; in msg_insert() 168 info->qsize += msg->m_ts; in msg_insert() 169 list_add_tail(&msg->m_list, &leaf->msg_list); in msg_insert() 193 struct msg_msg *msg; in msg_get() local 219 msg = list_first_entry(&leaf->msg_list, in msg_get() 221 list_del(&msg->m_list); in msg_get() [all …]
|
D | util.h | 196 extern void free_msg(struct msg_msg *msg); 199 extern int store_msg(void __user *dest, struct msg_msg *msg, size_t len);
|
D | Makefile | 7 obj-$(CONFIG_SYSVIPC) += util.o msgutil.o msg.o sem.o shm.o syscall.o
|