Lines Matching refs:attrs
37 static int add_path_state(descriptor_t *dp, nvlist_t *attrs);
38 static int add_wwn(descriptor_t *dp, nvlist_t *attrs);
61 nvlist_t *attrs = NULL;
65 if (nvlist_alloc(&attrs, NVATTRS, 0) != 0) {
70 if (nvlist_add_string(attrs, DM_CTYPE, pp->ctype) != 0) {
71 nvlist_free(attrs);
82 if (add_path_state(dp, attrs) != 0) {
83 nvlist_free(attrs);
87 if (add_wwn(dp, attrs) != 0) {
88 nvlist_free(attrs);
95 return (attrs);
181 add_path_state(descriptor_t *dp, nvlist_t *attrs)
199 if (nvlist_add_string(attrs, DM_PATH_STATE,
219 add_wwn(descriptor_t *dp, nvlist_t *attrs)
237 if (nvlist_add_string(attrs, DM_WWN, pp->wwns[i]) != 0) {