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

DIOCWLABEL(9r)

NAME

DIOCWLABEL - Disk: Sets a write-enable label on a disk

SYNOPSIS

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

DESCRIPTION

The DIOCWLABEL ioctl command turns the write-protect flag on and off for the block where the disk label is kept.

EXAMPLE

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

SEE ALSO

Data Structures: disklabel(9s)

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