Lines Matching defs:cbarg
30 * typedef boolean_t db_wfunc_t(void *cbarg, nvlist_t *db_nvl, char *buf,
35 * `cbarg' - callback argument
41 * All the 'write' callback functions modify `db_nvl' based on `cbarg' and
47 * reading `db_nvl' and then populate the `cbarg'.
329 ipmgmt_getaddr_cbarg_t *cbarg = arg;
352 if (cbarg->cb_aobjname[0] != '\0') {
353 if (strcmp(cbarg->cb_aobjname, db_aobjname) == 0)
355 } else if (cbarg->cb_ifname[0] != '\0') {
356 if (strcmp(cbarg->cb_ifname, db_ifname) == 0)
364 cbarg->cb_ocnt);
365 *errp = nvlist_add_nvlist(cbarg->cb_onvl, name, db_nvl);
367 cbarg->cb_ocnt++;
555 * For the given `cbarg->cb_ifname' interface, retrieves any persistent
563 ipmgmt_getif_cbarg_t *cbarg = arg;
564 char *ifname = cbarg->cb_ifname;
577 for (ifp = cbarg->cb_ifinfo; ifp != NULL; ifp = ifp->ifi_next) {
588 new->ifi_next = cbarg->cb_ifinfo;
589 cbarg->cb_ifinfo = new;
611 * matches with the given `cbarg->cb_ifname'
618 ipmgmt_if_cbarg_t *cbarg = arg;
619 boolean_t isv6 = (cbarg->cb_family == AF_INET6);
620 char *ifname = cbarg->cb_ifname;
634 if (atoi(afstr) == cbarg->cb_family)
659 if (head->am_family == cbarg->cb_family)
706 * matches with the given `cbarg->cb_aobjname'
713 ipmgmt_resetaddr_cbarg_t *cbarg = arg;
714 char *aobjname = cbarg->cb_aobjname;
735 ipmgmt_initif_cbarg_t *cbarg = arg;
736 nvlist_t *onvl = cbarg->cb_onvl;
737 nvlist_t *invl = cbarg->cb_invl;
738 sa_family_t in_af = cbarg->cb_family;
769 cbarg->cb_ocnt);
772 cbarg->cb_ocnt++;
1350 ipmgmt_db_init(void *cbarg, nvlist_t *db_nvl, char *buf, size_t buflen,
1353 ipadm_handle_t iph = cbarg;