Index Index for
Section 9
Index Alphabetical
listing for D
Bottom of page Bottom of
page

DIOCWDINFO(9r)

NAME

DIOCWDINFO - Disk: Writes a disk label

SYNOPSIS

#include <io/common/devio.h> #include <sys/ioctl.h> int ioctl( dev_t dev, register int DIOCWDINFO, caddr_t data, int flag );

DESCRIPTION

The DIOCWDINFO ioctl command writes a disklabel structure and updates the in-memory copy of the structure. The command turns off write-protection for the duration of the request, but does not check to see if the user has root privileges.

EXAMPLE

See Writing Device Drivers: Advanced Topics for an example of how a disk device driver implements the DIOCWDINFO command.

SEE ALSO

Kernel Interfaces: writedisklabel(9r) Data Structures: disklabel(9s)

Index Index for
Section 9
Index Alphabetical
listing for D
Top of page Top of
page