 |
Index for Section 9 |
|
 |
Alphabetical listing for V |
|
 |
Bottom of page |
|
v1_disk_dev_info_t(9s)
NAME
v1_disk_dev_info_t - Disk: Stores disk information for the DEVGETINFO ioctl
command
SYNOPSIS
typedef struct v1_disk_dev_info {
ulong_t status;
ulong_t capacity;
ulong_t blocksz;
uchar_t class;
uchar_t part_num;
uchar_t raid_level;
uchar_t pad0;
ushort_t media_changes;
ushort_t pad1;
union {
struct {
uchar_t density_code;
uchar_t flags;
} scsi;
uchar_t archdata[DEV_ARCH_LEN];
} arch;
} v1_disk_dev_info_t;
MEMBERS
status
Specifies the device status, such as ready, off line, or removable.
capacity
Specifies the number of blocks on the device.
blocksz
Specifies the number of bytes per block.
class
Specifies the disk class. See the DESCRIPTION section for the class
constants defined for disks.
part_num
Specifies the partition number on the disk.
raid_level
Specifies the raid level of the media.
pad0
Specifies a reserved member.
media_changes
Specifies the number of times the media has changed (for removable
media only).
pad1
Specifies a reserved member.
arch
Defines a union of architecture-specific information, either SCSI-
specific information or a character string.
DESCRIPTION
The v1_disk_dev_info_t structure contains information regarding the status
of the device that is passed to the DEVGETINFO ioctl command.
The following are disk class constants associated with the classes are
defined for disks and are set in the class member:
DKDEV_CLS_UNKNOWN
Unknown class
DKDEV_CLS_HARDDISK
Hard disk
DKDEV_CLS_FLPY_GENERIC
Floppy diskette with no known density
DKDEV_CLS_FLPY_3_DD2S
3.5", 720KB, DD, 2-sided, 9 sectors
DKDEV_CLS_FLPY_3_HD2S
3.5", 1.44MB, HD, 2-sided, 18 sectors
DKDEV_CLS_FLPY_3_ED2S
3.5", 2.88MB, ED, 2-sided, 36 sectors
DKDEV_CLS_FLPY_5_LD2S
5.25", 360KB, LD, 2-sided, 9 sectors
DKDEV_CLS_FLPY_5_DD1S
5.25", 400KB, DD, 1-sided, 10 sectors
DKDEV_CLS_FLPY_5_DD2S
5.25", 720KB, DD, 2-sided, 9 sectors
DKDEV_CLS_FLPY_5_HD2S
5.25", 1.2MB, HD, 2-side, 15 sectors
DKDEV_CLS_CDROM
CD-ROM
DKDEV_CLS_WORM
Write once, read many times
FILES
<io/common/devgetinfo.h>
SEE ALSO
Data Structures: v1_devtype_info_t(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for V |
|
 |
Top of page |
|