 |
Index for Section 9 |
|
 |
Alphabetical listing for D |
|
 |
Bottom of page |
|
DIOCGCURPT(9r)
NAME
DIOCGCURPT - Disk: Returns the current partition map for a disk
SYNOPSIS
#include <io/common/devio.h>
#include <sys/ioctl.h>
int ioctl(
dev_t dev,
register int DIOCGCURPT,
caddr_t data,
int flag );
DESCRIPTION
The DIOCGCURPT ioctl command returns the current partition map to the user
data buffer in a pt_tbl structure. The pt_tbl structure contains an array
of partition structures, up to the maximum partitions allowed on the
device.
EXAMPLE
See Writing Device Drivers: Advanced Topics for an example of how a disk
device driver implements the DIOCGCURPT command.
SEE ALSO
Data Structures: disklabel(9s), pt_tbl(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for D |
|
 |
Top of page |
|