Searched refs:fqp (Results 1 – 1 of 1) sorted by relevance
46 struct mkuz_fifo_queue *fqp; in mkuz_fqueue_ctor() local48 fqp = mkuz_safe_zmalloc(sizeof(struct mkuz_fifo_queue)); in mkuz_fqueue_ctor()49 fqp->wakeup_len = wakeup_len; in mkuz_fqueue_ctor()50 if (pthread_mutex_init(&fqp->mtx, NULL) != 0) { in mkuz_fqueue_ctor()53 if (pthread_cond_init(&fqp->cvar, NULL) != 0) { in mkuz_fqueue_ctor()56 return (fqp); in mkuz_fqueue_ctor()60 mkuz_fqueue_enq(struct mkuz_fifo_queue *fqp, struct mkuz_blk *bp) in mkuz_fqueue_enq() argument67 pthread_mutex_lock(&fqp->mtx); in mkuz_fqueue_enq()68 if (fqp->first != NULL) { in mkuz_fqueue_enq()69 fqp->first->prev = ip; in mkuz_fqueue_enq()[all …]