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()172 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_addchar()199 mtx_lock_spin(&mbp->msg_lock); in msgbuf_addstr()284 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_addstr()298 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getchar()311 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_getchar()325 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getbytes()344 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_getbytes()[all …]
53 struct mtx msg_lock; /* mutex to protect the buffer */ member