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()282 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_addstr()296 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getchar()309 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_getchar()323 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getbytes()342 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_getbytes()[all …]
53 struct mtx msg_lock; /* mutex to protect the buffer */ member