Lines Matching refs:cn
368 dsvcd_container_t *cn;
407 cn = ds_get_container(ds, conid, lreq->lrq_crosshost);
408 if (cn == NULL) {
419 ud = ud_create(cn, &reply.rp_retval);
421 ds_release_container(ds, cn);
458 "lock request", cn->cn_id);
460 ds_release_container(ds, cn);
470 lreq->lrq_locktype == DSVCD_RDLOCK ? "read" : "write", cn->cn_id);
473 reply.rp_retval = cn_rdlock(cn, lreq->lrq_nonblock);
475 reply.rp_retval = cn_wrlock(cn, lreq->lrq_nonblock);
478 cn->cn_id, lreq->lrq_locktype == DSVCD_RDLOCK ? "read" : "write",
481 ds_release_container(ds, cn);
494 (void) cn_unlock(cn);
525 dsvcd_container_t *cn;
537 cn = ud->ud_cn;
556 if (cn == NULL) {
569 switch (cn_locktype(cn)) {
572 "`%s'; unlocking", cn->cn_id);
573 (void) cn_unlock(cn);
578 "`%s'; unlocking", cn->cn_id);
581 (void) cn_unlock(cn);
618 if (cn == NULL) {
629 * cn->cn_id is no longer accessible.
631 dhcpmsg(MSG_DEBUG, "tid %d: unlocking %s", thr_self(), cn->cn_id);
632 reply.rp_retval = cn_unlock(cn);
721 * Create an unlock descriptor for container `cn' -- returns an unlock
728 ud_create(dsvcd_container_t *cn, int *retvalp)
744 "descriptor; denying %s lock request", cn->cn_id);
754 "denying %s lock request", cn->cn_id);
762 ud->ud_cn = cn;