Lines Matching refs:errp

39 static descriptor_t	**get_assoc_drives(descriptor_t *desc, int *errp);
40 static descriptor_t **get_assoc_controllers(descriptor_t *desc, int *errp);
44 path_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) in path_get_assoc_descriptors() argument
48 return (get_assoc_drives(desc, errp)); in path_get_assoc_descriptors()
50 return (get_assoc_controllers(desc, errp)); in path_get_assoc_descriptors()
53 *errp = EINVAL; in path_get_assoc_descriptors()
58 path_get_attributes(descriptor_t *dp, int *errp) in path_get_attributes() argument
66 *errp = ENOMEM; in path_get_attributes()
72 *errp = ENOMEM; in path_get_attributes()
84 *errp = ENOMEM; in path_get_attributes()
89 *errp = ENOMEM; in path_get_attributes()
94 *errp = 0; in path_get_attributes()
99 path_get_descriptor_by_name(char *name, int *errp) in path_get_descriptor_by_name() argument
105 paths = cache_get_descriptors(DM_PATH, errp); in path_get_descriptor_by_name()
106 if (*errp != 0) { in path_get_descriptor_by_name()
121 *errp = ENODEV; in path_get_descriptor_by_name()
129 path_get_descriptors(int filter[], int *errp) in path_get_descriptors() argument
131 return (cache_get_descriptors(DM_PATH, errp)); in path_get_descriptors()
142 path_get_stats(descriptor_t *dp, int stat_type, int *errp) in path_get_stats() argument
145 *errp = EINVAL; in path_get_stats()
249 get_assoc_controllers(descriptor_t *desc, int *errp) in get_assoc_controllers() argument
261 *errp = ENOMEM; in get_assoc_controllers()
268 pp->controller, NULL, NULL, errp); in get_assoc_controllers()
269 if (*errp != 0) { in get_assoc_controllers()
277 *errp = 0; in get_assoc_controllers()
282 get_assoc_drives(descriptor_t *desc, int *errp) in get_assoc_drives() argument
297 *errp = ENOMEM; in get_assoc_drives()
303 errp); in get_assoc_drives()
304 if (*errp != 0) { in get_assoc_drives()
311 *errp = 0; in get_assoc_drives()