 |
Index for Section 9 |
|
 |
Alphabetical listing for D |
|
 |
Bottom of page |
|
DIOCGPART(9r)
NAME
DIOCGPART - Disk: Returns information about a single disk partition
SYNOPSIS
#include <io/common/devio.h>
#include <sys/ioctl.h>
int ioctl(
dev_t dev,
register int DIOCGPART,
caddr_t data,
int flag );
DESCRIPTION
The DIOCGPART ioctl command returns information about a device and
partition. This information is returned in a partinfo structure, which
contains pointers to the disklabel and partition structures for a single
partition on a disk. If the disk does not have a disk label, the DIOCGPART
ioctl command returns EINVAL.
EXAMPLE
See Writing Device Drivers: Advanced Topics for an example of how a disk
device driver implements the DIOCGPART command.
SEE ALSO
Data Structures: disklabel(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for D |
|
 |
Top of page |
|