Searched refs:msg_lock (Results 1 – 2 of 2) sorted by relevance
74 bzero(&mbp->msg_lock, sizeof(mbp->msg_lock)); in msgbuf_init()75 mtx_init(&mbp->msg_lock, "msgbuf", NULL, MTX_SPIN); in msgbuf_init()109 bzero(&mbp->msg_lock, sizeof(mbp->msg_lock)); in msgbuf_reinit()110 mtx_init(&mbp->msg_lock, "msgbuf", NULL, MTX_SPIN); 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()299 mtx_unlock_spin(&mbp->msg_lock); in msgbuf_getchar()[all …]
51 struct mtx msg_lock; /* mutex to protect the buffer */ member