/titanic_41/usr/src/lib/libdiskmgt/common/ |
H A D | disks_private.h | 127 } descriptor_t; typedef 147 descriptor_t **alias_get_descriptors(int filter[], int *errp); 148 descriptor_t **alias_get_assoc_descriptors(descriptor_t *desc, 150 descriptor_t *alias_get_descriptor_by_name(char *name, int *errp); 151 char *alias_get_name(descriptor_t *desc); 152 nvlist_t *alias_get_attributes(descriptor_t *desc, int *errp); 153 nvlist_t *alias_get_stats(descriptor_t *desc, int stat_type, int *errp); 156 descriptor_t **bus_get_descriptors(int filter[], int *errp); 157 descriptor_t **bus_get_assoc_descriptors(descriptor_t *desc, 159 descriptor_t *bus_get_descriptor_by_name(char *name, int *errp); [all …]
|
H A D | controller.c | 39 static descriptor_t **get_assoc_buses(descriptor_t *desc, int *errp); 40 static descriptor_t **get_assoc_drives(descriptor_t *desc, int *errp); 41 static descriptor_t **get_assoc_paths(descriptor_t *desc, int *errp); 43 descriptor_t ** 44 controller_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, in controller_get_assoc_descriptors() 61 controller_get_attributes(descriptor_t *dp, int *errp) in controller_get_attributes() 137 descriptor_t * 140 descriptor_t **controllers; in controller_get_descriptor_by_name() 142 descriptor_t *controller = NULL; in controller_get_descriptor_by_name() 167 descriptor_t ** [all …]
|
H A D | bus.c | 39 static descriptor_t **get_assoc_buses(descriptor_t *desc, int *errp); 40 static descriptor_t **get_assoc_controllers(descriptor_t *desc, int *errp); 42 descriptor_t ** 43 bus_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) in bus_get_assoc_descriptors() 57 bus_get_attributes(descriptor_t *dp, int *errp) in bus_get_attributes() 95 descriptor_t * 98 descriptor_t **buses; in bus_get_descriptor_by_name() 100 descriptor_t *bus = NULL; in bus_get_descriptor_by_name() 125 descriptor_t ** 132 bus_get_name(descriptor_t *desc) in bus_get_name() [all …]
|
H A D | path.c | 37 static int add_path_state(descriptor_t *dp, nvlist_t *attrs); 38 static int add_wwn(descriptor_t *dp, nvlist_t *attrs); 39 static descriptor_t **get_assoc_drives(descriptor_t *desc, int *errp); 40 static descriptor_t **get_assoc_controllers(descriptor_t *desc, int *errp); 43 descriptor_t ** 44 path_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, int *errp) in path_get_assoc_descriptors() 58 path_get_attributes(descriptor_t *dp, int *errp) in path_get_attributes() 98 descriptor_t * 101 descriptor_t **paths; in path_get_descriptor_by_name() 103 descriptor_t *path = NULL; in path_get_descriptor_by_name() [all …]
|
H A D | partition.h | 41 descriptor_t **partition_get_descriptors(int filter[], int *errp); 42 descriptor_t **partition_get_assoc_descriptors(descriptor_t *desc, 44 descriptor_t **partition_get_assocs(descriptor_t *desc, int *errp); 45 descriptor_t *partition_get_descriptor_by_name(char *name, int *errp); 46 char *partition_get_name(descriptor_t *desc); 47 nvlist_t *partition_get_attributes(descriptor_t *desc, int *errp); 48 nvlist_t *partition_get_stats(descriptor_t *desc, int stat_type,
|
H A D | media.c | 47 static descriptor_t **apply_filter(descriptor_t **media, int filter[], 52 static int desc_ok(descriptor_t *dp); 57 descriptor_t ** 58 media_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, in media_get_assoc_descriptors() 82 descriptor_t ** 83 media_get_assocs(descriptor_t *dp, int *errp) in media_get_assocs() 85 descriptor_t **media; in media_get_assocs() 102 media = (descriptor_t **)calloc(2, sizeof (descriptor_t *)); in media_get_assocs() 120 media_get_attributes(descriptor_t *dp, int *errp) in media_get_attributes() 149 descriptor_t * [all …]
|
H A D | cache.c | 62 descriptor_t *desc_listp = NULL; 69 static descriptor_t *have_desc(int type, void *gp, char *name, char *mname); 75 static descriptor_t *new_descriptor(dm_desc_type_t type, void *op, 78 static void update_desc(descriptor_t *descp, disk_t *newdisksp, 80 static void update_desc_busp(descriptor_t *descp, bus_t *busp); 81 static void update_desc_ctrlp(descriptor_t *descp, 83 static void update_desc_diskp(descriptor_t *descp, 85 static void update_desc_pathp(descriptor_t *descp, 218 cache_free_descriptor(descriptor_t *desc) in cache_free_descriptor() 243 cache_free_descriptors(descriptor_t **desc_list) in cache_free_descriptors() [all …]
|
H A D | alias.c | 43 descriptor_t ** 44 alias_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, in alias_get_assoc_descriptors() 57 alias_get_attributes(descriptor_t *dp, int *errp) in alias_get_attributes() 120 descriptor_t * 123 descriptor_t **aliases; in alias_get_descriptor_by_name() 125 descriptor_t *alias = NULL; in alias_get_descriptor_by_name() 150 descriptor_t ** 157 alias_get_name(descriptor_t *desc) in alias_get_name() 164 alias_get_stats(descriptor_t *dp, int stat_type, int *errp) in alias_get_stats()
|
H A D | drive.c | 325 static descriptor_t **apply_filter(descriptor_t **drives, int filter[], 335 static descriptor_t **get_assoc_alias(disk_t *diskp, int *errp); 336 static descriptor_t **get_assoc_controllers(descriptor_t *dp, int *errp); 337 static descriptor_t **get_assoc_paths(descriptor_t *dp, int *errp); 360 descriptor_t ** 361 drive_get_assoc_descriptors(descriptor_t *dp, dm_desc_type_t type, in drive_get_assoc_descriptors() 382 descriptor_t ** 383 drive_get_assocs(descriptor_t *desc, int *errp) in drive_get_assocs() 385 descriptor_t **drives; in drive_get_assocs() 389 drives = (descriptor_t **)calloc(2, sizeof (descriptor_t *)); in drive_get_assocs() [all …]
|
H A D | partition.c | 60 static int desc_ok(descriptor_t *dp); 61 static int get_attrs(descriptor_t *dp, struct ipart *iparts, 66 static int has_slices(descriptor_t *desc, int *errp); 68 descriptor_t ** 69 partition_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, in partition_get_assoc_descriptors() 99 descriptor_t ** 100 partition_get_assocs(descriptor_t *desc, int *errp) in partition_get_assocs() 102 descriptor_t **partitions; in partition_get_assocs() 117 partitions = (descriptor_t **)calloc(TOTAL_NUMPART + 1, in partition_get_assocs() 118 sizeof (descriptor_t *)); in partition_get_assocs() [all …]
|
H A D | entry.c | 62 static dm_descriptor_t *ptr_array_to_desc_array(descriptor_t **ptrs, int *errp); 63 static descriptor_t **desc_array_to_ptr_array(dm_descriptor_t *da, int *errp); 70 descriptor_t *dp; in dm_free_descriptor() 75 dp = (descriptor_t *)(uintptr_t)desc; in dm_free_descriptor() 85 descriptor_t **dp; in dm_free_descriptors() 113 descriptor_t **descs = NULL; in dm_get_associated_descriptors() 114 descriptor_t *dp; in dm_get_associated_descriptors() 117 dp = (descriptor_t *)(uintptr_t)desc; in dm_get_associated_descriptors() 197 descriptor_t *dp; in dm_get_attributes() 201 dp = (descriptor_t *)(uintptr_t)desc; in dm_get_attributes() [all …]
|
H A D | slice.c | 70 static int desc_ok(descriptor_t *dp); 72 static int get_attrs(descriptor_t *dp, int fd, nvlist_t *attrs); 73 static descriptor_t **get_fixed_assocs(descriptor_t *desc, int *errp); 78 descriptor_t ** 79 slice_get_assoc_descriptors(descriptor_t *desc, dm_desc_type_t type, in slice_get_assoc_descriptors() 104 descriptor_t ** 105 slice_get_assocs(descriptor_t *desc, int *errp) in slice_get_assocs() 117 slice_get_attributes(descriptor_t *dp, int *errp) in slice_get_attributes() 152 descriptor_t * 181 descriptor_t ** [all …]
|