Searched refs:msg_lock (Results 1 – 2 of 2) sorted by relevance
74 bzero(&mbp->msg_lock, sizeof(mbp->msg_lock)); in msgbuf_init()109 bzero(&mbp->msg_lock, sizeof(mbp->msg_lock)); in msgbuf_reinit()166 mtx_lock_spin(&mbp->msg_lock); in msgbuf_addchar()172 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_addchar()198 mtx_lock_spin(&mbp->msg_lock); in msgbuf_addstr()280 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_addstr()294 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getchar()307 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_getchar()321 mtx_lock_spin(&mbp->msg_lock); in msgbuf_getbytes()360 mtx_lock_spin(&mbp->msg_lock); in msgbuf_peekbytes()[all …]
53 struct mtx msg_lock; /* mutex to protect the buffer */ member