MCPcopy Create free account
hub / github.com/F-Stack/f-stack / msgbuf_getcount

Function msgbuf_getcount

freebsd/kern/subr_msgbuf.c:131–140  ·  view source on GitHub ↗

* Get a count of the number of unread characters in the message buffer. */

Source from the content-addressed store, hash-verified

129 * Get a count of the number of unread characters in the message buffer.
130 */
131int
132msgbuf_getcount(struct msgbuf *mbp)
133{
134 u_int len;
135
136 len = MSGBUF_SEQSUB(mbp, mbp->msg_wseq, mbp->msg_rseq);
137 if (len > mbp->msg_size)
138 len = mbp->msg_size;
139 return (len);
140}
141
142/*
143 * Add a character into the message buffer, and update the checksum and

Callers 4

logreadFunction · 0.85
logpollFunction · 0.85
logkqreadFunction · 0.85
logioctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected