Searched refs:disk_t (Results 1 – 9 of 9) sorted by relevance
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | cache.c | 59 static disk_t *disk_listp = NULL; 67 static void clr_ctrl_disk_ptr(controller_t *cp, disk_t *dp); 68 static void clr_path_disk_ptr(path_t *pp, disk_t *dp); 69 static void del_drive(disk_t *dp); 74 static int match_disk(disk_t *oldp, disk_t *newp); 75 static int match_aliases(disk_t *d1p, disk_t *d2p); 80 static void update_desc(descriptor_t *descp, disk_t *newdisksp, 86 disk_t *newdisksp); 257 cache_free_disk(disk_t *dp) in cache_free_disk() 393 disk_t * [all …]
|
H A D | findevs.c | 93 static int add_disk2controller(disk_t *diskp, 95 static int add_disk2path(disk_t *dp, path_t *pp, 104 static disk_t *create_disk(char *deviceid, char *kernel_name, 108 static alias_t *find_alias(disk_t *diskp, char *kernel_name); 111 static disk_t *get_disk_by_deviceid(disk_t *listp, char *devid); 124 char *kernel_name, disk_t **diskp); 129 static int new_alias(disk_t *diskp, char *kernel_path, 132 static path_t *new_path(controller_t *cp, disk_t *diskp, 389 cp->disks = (disk_t **)calloc(1, sizeof (disk_t *)); in add_controller() 410 disk_t *diskp; in add_devpath() [all …]
|
H A D | disks_private.h | 117 } disk_t; typedef 122 disk_t *disk; 136 disk_t *disk_listp; 191 int drive_open_disk(disk_t *diskp, char *opath, int len); 203 int media_read_name(disk_t *dp, char *mname, int size); 231 void cache_free_disk(disk_t *dp); 238 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 | drive.c | 341 static descriptor_t **get_assoc_alias(disk_t *diskp, int *errp); 344 static int get_attrs(disk_t *diskp, int fd, char *opath, 349 static void get_drive_type(disk_t *dp, int fd); 356 static int get_rpm(disk_t *dp, int fd); 357 static int get_solidstate(disk_t *dp, int fd); 520 disk_t *diskp; in drive_get_stats() 618 disk_t *dp; in drive_make_descriptors() 636 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() 737 get_assoc_alias(disk_t *diskp, int *errp) in get_assoc_alias() 786 disk_t *diskp; in get_assoc_controllers() [all …]
|
H A D | alias.c | 39 static int get_status(disk_t *diskp, int fd, nvlist_t *attrs); 173 disk_t *dp; in alias_make_descriptors() 196 get_status(disk_t *diskp, int fd, nvlist_t *attrs) in get_status()
|
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 | slice.c | 78 static int match_fixed_name(disk_t *dp, char *name, int *errp); 79 static int make_fixed_descriptors(disk_t *dp); 159 disk_t *dp; in slice_get_descriptor_by_name() 228 disk_t *dp; in slice_make_descriptors() 635 make_fixed_descriptors(disk_t *dp) in make_fixed_descriptors() 714 match_fixed_name(disk_t *diskp, char *name, int *errp) in match_fixed_name()
|
H A D | partition.h | 48 int partition_has_fdisk(disk_t *dp, int fd);
|