get rid of kernelmap
[unix-history] / usr / src / sys / dev / vnioctl.h
CommitLineData
60f56dfc
KM
1/*
2 * Copyright (c) 1988 University of Utah.
3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the Systems Programming Group of the University of Utah Computer
8 * Science Department.
9 *
10 * %sccs.include.redist.c%
11 *
f7c89fbb 12 * from: Utah $Hdr: fdioctl.h 1.1 90/07/09$
60f56dfc 13 *
f7c89fbb 14 * @(#)vnioctl.h 7.2 (Berkeley) %G%
60f56dfc
KM
15 */
16
17/*
18 * Ioctl definitions for file (vnode) disk pseudo-device.
19 */
20
21#define FDISKFILE "/etc/fdisks" /* default config file */
22
23struct fd_ioctl {
24 char *fd_file; /* pathname of file to mount */
25 int fd_size; /* (returned) size of disk */
26};
27
28/*
29 * Before you can use a unit, it must be configured with FDIOCSET.
30 * The configuration persists across opens and closes of the device;
31 * an FDIOCCLR must be used to reset a configuration. An attempt to
32 * FDIOCSET an already active unit will return EBUSY.
33 */
34#define FDIOCSET _IOWR('F', 0, struct fd_ioctl) /* enable disk */
35#define FDIOCCLR _IOW('F', 1, struct fd_ioctl) /* disable disk */