Searched refs:disk_t (Results 1 – 9 of 9) sorted by relevance
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | cache.c | 70 static int match_disk(disk_t *oldp, disk_t *newp); 71 static int match_aliases(disk_t *d1p, disk_t *d2p); 82 disk_t *newdisksp); 388 disk_t * 536 del_drive(disk_t *dp) in del_drive() 539 disk_t *listp; in del_drive() 540 disk_t *prev = NULL; in del_drive() 586 disk_t *listp; in del_drive_by_name() 730 match_aliases(disk_t *d1p, disk_t *d2p) in match_aliases() 750 match_disk(disk_t *oldp, disk_t *newp) in match_disk() [all …]
|
H A D | findevs.c | 109 static disk_t *get_disk_by_deviceid(disk_t *listp, char *devid); 387 cp->disks = (disk_t **)calloc(1, sizeof (disk_t *)); in add_controller() 408 disk_t *diskp; in add_devpath() 517 disk_t *diskp; in add_devs() 868 disk_t *dp = cp->disks[i]; in remove_controller() 933 static disk_t * 936 disk_t *diskp; in create_disk() 945 diskp = calloc(1, sizeof (disk_t)); in create_disk() 1157 static disk_t * 1327 disk_t **diskp) in have_disk() [all …]
|
H A D | disks_private.h | 115 } disk_t; typedef 120 disk_t *disk; 134 disk_t *disk_listp; 189 int drive_open_disk(disk_t *diskp, char *opath, int len); 201 int media_read_name(disk_t *dp, char *mname, int size); 229 void cache_free_disk(disk_t *dp); 236 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 | 348 static void get_drive_type(disk_t *dp, int fd); 355 static int get_rpm(disk_t *dp, int fd); 356 static int get_solidstate(disk_t *dp, int fd); 520 disk_t *diskp; in drive_get_stats() 616 disk_t *dp; in drive_make_descriptors() 634 drive_open_disk(disk_t *diskp, char *opath, int len) in drive_open_disk() 733 get_assoc_alias(disk_t *diskp, int *errp) in get_assoc_alias() 782 disk_t *diskp; in get_assoc_controllers() 996 get_drive_type(disk_t *dp, int fd) in get_drive_type() 1153 get_rpm(disk_t *dp, int fd) in get_rpm() [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);
|