Lines Matching refs:vntsdp
159 vntsd_delete_cons(vntsd_t *vntsdp) in vntsd_delete_cons() argument
166 (void) mutex_lock(&vntsdp->lock); in vntsd_delete_cons()
167 groupp = vntsd_que_walk(vntsdp->grouppq, in vntsd_delete_cons()
171 (void) mutex_unlock(&vntsdp->lock); in vntsd_delete_cons()
177 (void) mutex_unlock(&vntsdp->lock); in vntsd_delete_cons()
328 alloc_group(vntsd_t *vntsdp, char *group_name, uint64_t tcp_port) in alloc_group() argument
352 groupp->vntsd = vntsdp; in alloc_group()
375 alloc_cons_with_group(vntsd_t *vntsdp, vcc_console_t *consp, in alloc_cons_with_group() argument
386 (void) mutex_lock(&vntsdp->lock); in alloc_cons_with_group()
387 groupp = vntsd_que_find(vntsdp->grouppq, in alloc_cons_with_group()
392 (void) mutex_unlock(&vntsdp->lock); in alloc_cons_with_group()
439 groupp = alloc_group(vntsdp, consp->group_name, in alloc_cons_with_group()
447 (void) mutex_lock(&vntsdp->lock); in alloc_cons_with_group()
448 rv = vntsd_que_append(&vntsdp->grouppq, groupp); in alloc_cons_with_group()
449 (void) mutex_unlock(&vntsdp->lock); in alloc_cons_with_group()
550 delete_cons_before_add(vntsd_t *vntsdp, uint_t cons_no) in delete_cons_before_add() argument
556 (void) mutex_lock(&vntsdp->lock); in delete_cons_before_add()
557 groupp = vntsd_que_find(vntsdp->grouppq, in delete_cons_before_add()
560 (void) mutex_unlock(&vntsdp->lock); in delete_cons_before_add()
598 do_add_cons(vntsd_t *vntsdp, int cons_no) in do_add_cons() argument
618 delete_cons_before_add(vntsdp, console.cons_no); in do_add_cons()
622 if ((rv = alloc_cons_with_group(vntsdp, &console, &groupp)) != in do_add_cons()
642 vntsd_daemon_wakeup(vntsd_t *vntsdp) in vntsd_daemon_wakeup() argument
660 do_add_cons(vntsdp, inq_data.cons_no); in vntsd_daemon_wakeup()
677 vntsd_get_config(vntsd_t *vntsdp) in vntsd_get_config() argument
717 if (alloc_cons_with_group(vntsdp, &consp[i], &groupp) in vntsd_get_config()
724 (void) mutex_lock(&vntsdp->lock); in vntsd_get_config()
727 groupp = vntsd_que_walk(vntsdp->grouppq, in vntsd_get_config()
735 (void) mutex_unlock(&vntsdp->lock); in vntsd_get_config()