Technical data

dkio(7I) Ioctl Requests SunOS 5.5
/digits /
#define DKI_PCMCIA_PFD 0x40 /PCMCIA pseudo-floppy memory card /
DKIOCGAPART The argument is a pointer to a dk_allmap structure (described below).
This ioctl() gets the controller’s notion of the current partition table for
disk drive.
DKIOCSAPART The argument is a pointer to a dk_allmap structure (described below).
This ioctl() sets the controller’s notion of the partition table without
changing the disk itself.
/
Partition map (part of dk_label)
/
struct dk_map {
daddr_t dkl_cylno; /starting cylinder /
daddr_t dkl_nblk; /number of blocks /
};
/
Used for all partitions
/
struct dk_allmap {
struct dk_map dka_map[NDKMAP];
};
DKIOCPARTINFO
x86: The argument is a pointer to a part_info structure (described
below). This ioctl() gets the driver’s notion of the size and extent of the
partition or slice indicated by the file descriptor argument.
/
Used by applications to get partition or slice information
/
struct part_info {
daddr_t p_start;
int p_length;
};
DKIOCGGEOM The argument is a pointer to a dk_geom structure (described below).
This ioctl() gets the controller’s notion of the current geometry of the
disk drive.
DKIOCSGEOM The argument is a pointer to a dk_geom structure (described below).
This ioctl() sets the controller’s notion of the geometry without chang-
ing the disk itself.
7I-80 modified 3 Mar 1995