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

Function msgbuf_addchar

freebsd/kern/subr_msgbuf.c:165–173  ·  view source on GitHub ↗

* Append a character to a message buffer. */

Source from the content-addressed store, hash-verified

163 * Append a character to a message buffer.
164 */
165void
166msgbuf_addchar(struct msgbuf *mbp, int c)
167{
168 mtx_lock_spin(&mbp->msg_lock);
169
170 msgbuf_do_addchar(mbp, &mbp->msg_wseq, c);
171
172 mtx_unlock_spin(&mbp->msg_lock);
173}
174
175/*
176 * Append a NUL-terminated string with a priority to a message buffer.

Callers 2

msgbuf_copyFunction · 0.85
msglogcharFunction · 0.85

Calls 1

msgbuf_do_addcharFunction · 0.85

Tested by

no test coverage detected