Lines Matching refs:attr
439 dladm_get_conf_field(dladm_handle_t handle, dladm_conf_t conf, const char *attr,
444 if (attrval == NULL || attrsz == 0 || attr == NULL)
452 if ((err = nvlist_lookup_byte_array(conf.ds_nvl, (char *)attr,
470 (void) strlcpy(getattr.ld_attr, attr, MAXLINKATTRLEN);
492 const char *last_attr, char *attr, void *attrval, size_t attrsz,
501 if (nvl == NULL || attrval == NULL || attrsz == 0 || attr == NULL ||
525 (void) strlcpy(attr, nvpair_name(nvp), MAXLINKATTRLEN);
633 * Set the given attr with the given attrval for the given link.
636 dladm_set_conf_field(dladm_handle_t handle, dladm_conf_t conf, const char *attr,
644 if (attr == NULL || attrval == NULL)
660 (void) strlcpy(setattr.ld_attr, attr, MAXLINKATTRLEN);
670 * Unset the given attr the given link.
674 const char *attr)
680 if (attr == NULL)
688 (void) strlcpy(unsetattr.ld_attr, attr, MAXLINKATTRLEN);