* Append a character to a message buffer. */
| 163 | * Append a character to a message buffer. |
| 164 | */ |
| 165 | void |
| 166 | msgbuf_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. |
no test coverage detected