Lines Matching full:ctl
72 free_nl_ctl(struct nl_control *ctl)
74 rm_destroy(&ctl->ctl_lock);
75 free(ctl, M_NETLINK);
81 struct nl_control *ctl;
83 ctl = malloc(sizeof(struct nl_control), M_NETLINK, M_WAITOK | M_ZERO);
84 rm_init(&ctl->ctl_lock, "netlink lock");
85 CK_LIST_INIT(&ctl->ctl_port_head);
86 CK_LIST_INIT(&ctl->ctl_pcb_head);
93 atomic_store_ptr(&V_nl_ctl, ctl);
94 CK_LIST_INSERT_HEAD(&vnets_head, ctl, ctl_next);
96 curvnet, ctl);
99 free_nl_ctl(ctl);
100 ctl = tmp;
105 return (ctl);
111 struct nl_control *ctl;
116 ctl = atomic_load_ptr(&V_nl_ctl);
118 if (ctl != NULL) {
119 NL_LOG(LOG_DEBUG2, "Removing %p from global list", ctl);
120 CK_LIST_REMOVE(ctl, ctl_next);
124 if (ctl != NULL)
125 free_nl_ctl(ctl);
194 struct nl_control *ctl;
199 CK_LIST_FOREACH(ctl, &vnets_head, ctl_next) {
200 NL_LOG(LOG_DEBUG2, "Iterating VNET head %p", ctl);
201 if (!CK_LIST_EMPTY(&ctl->ctl_pcb_head)) {
202 NL_LOG(LOG_NOTICE, "non-empty socket list in ctl %p", ctl);