Searched refs:disk_t (Results 1 – 9 of 9) sorted by relevance
/titanic_41/usr/src/lib/libdiskmgt/common/ |
H A D | cache.c | 57 static disk_t *disk_listp = NULL; 65 static void clr_ctrl_disk_ptr(controller_t *cp, disk_t *dp); 66 static void clr_path_disk_ptr(path_t *pp, disk_t *dp); 67 static void del_drive(disk_t *dp); 72 static int match_disk(disk_t *oldp, disk_t *newp); 73 static int match_aliases(disk_t *d1p, disk_t *d2p); 78 static void update_desc(descriptor_t *descp, disk_t *newdisksp, 84 disk_t *newdisksp); 255 cache_free_disk(disk_t *dp) in cache_free_disk() 390 disk_t * [all …]
|
H A D | findevs.c | 87 static int add_disk2controller(disk_t *diskp, 89 static int add_disk2path(disk_t *dp, path_t *pp, 98 static disk_t *create_disk(char *deviceid, char *kernel_name, 102 static alias_t *find_alias(disk_t *diskp, char *kernel_name); 106 static disk_t *get_disk_by_deviceid(disk_t *listp, char *devid); 119 char *kernel_name, disk_t **diskp); 125 static int new_alias(disk_t *diskp, char *kernel_path, 128 static path_t *new_path(controller_t *cp, disk_t *diskp, 429 cp->disks = (disk_t **)calloc(1, sizeof (disk_t *)); in add_controller() 450 disk_t *diskp; in add_devpath() [all …]
|
H A D | disks_private.h | 111 } disk_t; typedef 116 disk_t *disk; 130 disk_t *disk_listp; 185 int drive_open_disk(disk_t *diskp, char *opath, int len); 197 int media_read_name(disk_t *dp, char *mname, int size); 225 void cache_free_disk(disk_t *dp); 232 disk_t *cache_get_disklist();
|
H A D | media.c | 49 static int get_attrs(disk_t *dp, int fd, nvlist_t *attrs); 50 static int get_rmm_name(disk_t *dp, char *mname, int size); 221 disk_t *dp; in media_make_descriptors() 273 media_read_name(disk_t *dp, char *mname, int size) in media_read_name() 370 get_attrs(disk_t *dp, int fd, nvlist_t *attrs) 538 get_rmm_name(disk_t *dp, char *mname, int size)
|
H A D | alias.c | 41 static int get_status(disk_t *diskp, int fd, nvlist_t *attrs); 175 disk_t *dp; in alias_make_descriptors() 198 get_status(disk_t *diskp, int fd, nvlist_t *attrs) in get_status()
|
H A D | drive.c | 335 static descriptor_t **get_assoc_alias(disk_t *diskp, int *errp); 338 static int get_attrs(disk_t *diskp, int fd, char *opath, 343 static void get_drive_type(disk_t *dp, int fd); 350 static int get_rpm(disk_t *dp, int fd); 351 static int get_solidstate(disk_t *dp, int fd); 515 disk_t *diskp; in drive_get_stats() 611 disk_t *dp; in drive_make_descriptors() 629 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() 728 get_assoc_alias(disk_t *diskp, int *errp) in get_assoc_alias() 777 disk_t *diskp; in get_assoc_controllers() [all …]
|
H A D | slice.c | 75 static int match_fixed_name(disk_t *dp, char *name, int *errp); 76 static int make_fixed_descriptors(disk_t *dp); 156 disk_t *dp; in slice_get_descriptor_by_name() 217 disk_t *diskp; in slice_get_stats() 272 disk_t *dp; in slice_make_descriptors() 406 disk_t *diskp; in get_attrs() 734 make_fixed_descriptors(disk_t *dp) in make_fixed_descriptors() 813 match_fixed_name(disk_t *diskp, char *name, int *errp) in match_fixed_name()
|
H A D | partition.c | 63 static int get_parts(disk_t *disk, struct ipart *iparts, char *opath, 65 static int open_disk(disk_t *diskp, char *opath, int len); 311 partition_has_fdisk(disk_t *dp, int fd) in partition_has_fdisk() 355 disk_t *dp; in partition_make_descriptors() 549 get_parts(disk_t *disk, struct ipart *iparts, char *opath, int opath_len) in get_parts() 789 open_disk(disk_t *diskp, char *opath, int len) in open_disk()
|
H A D | partition.h | 50 int partition_has_fdisk(disk_t *dp, int fd);
|