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

Function msgbuf_clear

freebsd/kern/subr_msgbuf.c:118–126  ·  view source on GitHub ↗

* Clear the message buffer. */

Source from the content-addressed store, hash-verified

116 * Clear the message buffer.
117 */
118void
119msgbuf_clear(struct msgbuf *mbp)
120{
121
122 bzero(mbp->msg_ptr, mbp->msg_size);
123 mbp->msg_wseq = 0;
124 mbp->msg_rseq = 0;
125 mbp->msg_cksum = 0;
126}
127
128/*
129 * Get a count of the number of unread characters in the message buffer.

Callers 3

msgbuf_initFunction · 0.85
msgbuf_reinitFunction · 0.85
sysctl_kern_msgbuf_clearFunction · 0.85

Calls 1

bzeroFunction · 0.85

Tested by

no test coverage detected