sysv_msg.c (72786) | sysv_msg.c (77461) |
---|---|
1/* $FreeBSD: head/sys/kern/sysv_msg.c 72786 2001-02-21 06:39:57Z rwatson $ */ | 1/* $FreeBSD: head/sys/kern/sysv_msg.c 77461 2001-05-30 03:28:59Z dd $ */ |
2 3/* 4 * Implementation of SVID messages 5 * 6 * Author: Daniel Boulet 7 * 8 * Copyright 1993 Daniel Boulet and RTMX Inc. 9 * --- 1151 unchanged lines hidden (view full) --- 1161 * Done, return the actual number of bytes copied out. 1162 */ 1163 1164 msg_freehdr(msghdr); 1165 wakeup((caddr_t)msqptr); 1166 p->p_retval[0] = msgsz; 1167 return(0); 1168} | 2 3/* 4 * Implementation of SVID messages 5 * 6 * Author: Daniel Boulet 7 * 8 * Copyright 1993 Daniel Boulet and RTMX Inc. 9 * --- 1151 unchanged lines hidden (view full) --- 1161 * Done, return the actual number of bytes copied out. 1162 */ 1163 1164 msg_freehdr(msghdr); 1165 wakeup((caddr_t)msqptr); 1166 p->p_retval[0] = msgsz; 1167 return(0); 1168} |
1169 1170static int 1171sysctl_msqids(SYSCTL_HANDLER_ARGS) 1172{ 1173 1174 return (SYSCTL_OUT(req, msqids, 1175 sizeof(struct msqid_ds) * msginfo.msgmni)); 1176} 1177 1178SYSCTL_DECL(_kern_ipc); 1179SYSCTL_INT(_kern_ipc, OID_AUTO, msgmax, CTLFLAG_RD, &msginfo.msgmax, 0, ""); 1180SYSCTL_INT(_kern_ipc, OID_AUTO, msgmni, CTLFLAG_RD, &msginfo.msgmni, 0, ""); 1181SYSCTL_INT(_kern_ipc, OID_AUTO, msgmnb, CTLFLAG_RD, &msginfo.msgmnb, 0, ""); 1182SYSCTL_INT(_kern_ipc, OID_AUTO, msgtql, CTLFLAG_RD, &msginfo.msgtql, 0, ""); 1183SYSCTL_INT(_kern_ipc, OID_AUTO, msgssz, CTLFLAG_RD, &msginfo.msgssz, 0, ""); 1184SYSCTL_INT(_kern_ipc, OID_AUTO, msgseg, CTLFLAG_RD, &msginfo.msgseg, 0, "") 1185SYSCTL_PROC(_kern_ipc, OID_AUTO, msqids, CTLFLAG_RD, 1186 NULL, 0, sysctl_msqids, "", "Message queue IDs"); |
|