Searched refs:msg_lock (Results 1 – 2 of 2) sorted by relevance
76 bzero(&mbp->msg_lock, sizeof(mbp->msg_lock)); in msgbuf_init()111 bzero(&mbp->msg_lock, sizeof(mbp->msg_lock)); in msgbuf_reinit()168 mtx_lock_spin(&mbp->msg_lock); in msgbuf_addchar()174 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_addchar()200 mtx_lock_spin(&mbp->msg_lock); in msgbuf_addstr()274 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_addstr()288 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getchar()301 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_getchar()315 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getbytes()354 mtx_lock_spin(&mbp->msg_lock); in msgbuf_peekbytes()[all …]
54 struct mtx msg_lock; /* mutex to protect the buffer */ member