Lines Matching refs:dlconfp
733 dlmgmt_dlconf_t *dlconfp;
745 createconf->ld_class, createconf->ld_media, zoneid, &dlconfp);
747 avl_add(&dlmgmt_dlconf_avl, dlconfp);
748 dlmgmt_advance_dlconfid(dlconfp);
749 retvalp->lr_confid = dlconfp->ld_id;
763 dlmgmt_dlconf_t dlconf, *dlconfp;
772 dlconfp = avl_find(&dlmgmt_dlconf_avl, &dlconf, NULL);
773 if (dlconfp == NULL || zoneid != dlconfp->ld_zoneid) {
778 if ((err = dlmgmt_checkprivs(dlconfp->ld_class, cred)) != 0)
781 err = linkattr_set(&(dlconfp->ld_head), setattr->ld_attr,
796 dlmgmt_dlconf_t dlconf, *dlconfp;
805 dlconfp = avl_find(&dlmgmt_dlconf_avl, &dlconf, NULL);
806 if (dlconfp == NULL || zoneid != dlconfp->ld_zoneid) {
811 if ((err = dlmgmt_checkprivs(dlconfp->ld_class, cred)) != 0)
814 linkattr_unset(&(dlconfp->ld_head), unsetattr->ld_attr);
840 dlmgmt_dlconf_t dlconf, *dlconfp;
851 dlconfp = avl_find(&dlmgmt_dlconf_avl, &dlconf, NULL);
852 if (dlconfp == NULL || zoneid != dlconfp->ld_zoneid) {
857 if ((err = dlmgmt_checkprivs(dlconfp->ld_class, cred)) != 0)
864 linkp = link_by_id(dlconfp->ld_linkid, zoneid);
865 if ((linkp == NULL) || (linkp->ll_class != dlconfp->ld_class) ||
866 (linkp->ll_media != dlconfp->ld_media) ||
867 (strcmp(linkp->ll_link, dlconfp->ld_link) != 0)) {
876 if (linkp->ll_gen != dlconfp->ld_gen) {
898 for (attrp = dlconfp->ld_head; attrp != NULL; attrp = attrp->lp_next) {
954 dlmgmt_dlconf_t dlconf, *dlconfp;
963 dlconfp = avl_find(&dlmgmt_dlconf_avl, &dlconf, NULL);
964 if (dlconfp == NULL || zoneid != dlconfp->ld_zoneid) {
969 if ((err = dlmgmt_checkprivs(dlconfp->ld_class, cred)) != 0)
972 avl_remove(&dlmgmt_dlconf_avl, dlconfp);
973 dlconf_destroy(dlconfp);
998 dlmgmt_dlconf_t *dlconfp;
1030 linkp->ll_class, linkp->ll_media, zoneid, &dlconfp)) != 0)
1034 if ((err = linkattr_set(&(dlconfp->ld_head), attrp->lp_name,
1036 dlconf_destroy(dlconfp);
1040 dlconfp->ld_gen = linkp->ll_gen;
1041 avl_add(&dlmgmt_dlconf_avl, dlconfp);
1042 dlmgmt_advance_dlconfid(dlconfp);
1044 retvalp->lr_confid = dlconfp->ld_id;
1135 dlmgmt_dlconf_t dlconf, *dlconfp;
1144 if ((dlconfp = avl_find(&dlmgmt_dlconf_avl, &dlconf, NULL)) == NULL ||
1145 zoneid != dlconfp->ld_zoneid) {
1148 if ((err = dlmgmt_checkprivs(dlconfp->ld_class, cred)) != 0) {
1152 &dlconfp->ld_head, getattr->ld_attr, retvalp);