1.\"
2.\" Copyright (c) 2003 Robert N. M. Watson
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
--- 11 unchanged lines hidden (view full) ---
20.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26.\" DAMAGE.
27.\"
28.\" $FreeBSD: head/share/man/man9/disk.9 188917 2009-02-22 13:38:16Z trasz $
29.\"
30.Dd February 18, 2004
31.Dt DISK 9
32.Os
33.Sh NAME
34.Nm disk
35.Nd kernel disk storage API
36.Sh SYNOPSIS
--- 103 unchanged lines hidden (view full) ---
140Optional: invoked when an I/O control operation is initiated on the disk device.
141Please note that for security reasons these operations should not
142be able to affect other devices than the one on which they are performed.
143.It Vt "dumper_t *" Va d_dump
144Optional: if configured with
145.Xr dumpon 8 ,
146this function is invoked from a very restricted system state after a
147kernel panic to record a copy of the system RAM to the disk.
148.El
149.Ss Mandatory Media Properties
150The following fields identify the size and granularity of the disk device.
151These fields must stay stable from return of the drivers open method until
152the close method is called, but it is perfectly legal to modify them in
153the open method before returning.
154.Bl -tag -width indent
155.It Vt u_int Va d_sectorsize
--- 19 unchanged lines hidden (view full) ---
175necessary for the correct calculation of disk partitioning.
176.It Vt u_int Va d_stripeoffset , Vt u_int Va d_stripesize
177These two fields can be used to describe the width and location of
178natural performance boundaries for most disk technologies.
179Please see
180.Pa src/sys/geom/notes
181for details.
182.It Vt char Va d_ident[DISK_IDENT_SIZE]
183This field can and should be used to store disk's serial number.
184.El
185.Ss Driver Private Data
186This field may be used by the device driver to store a pointer to
187private data to implement the disk service.
188.Bl -tag -width indent
189.It Vt "void *" Va d_drv1
190Private data pointer.
191Typically used to store a pointer to the drivers
192.Vt softc
193structure for this disk device.
194.El
195.Sh SEE ALSO
196.Xr GEOM 4 ,
197.Xr devfs 5
198.Sh AUTHORS
199This manual page was written by
200.An Robert Watson .
2.\" Copyright (c) 2003 Robert N. M. Watson
3.\" All rights reserved.
4.\"
5.\" Redistribution and use in source and binary forms, with or without
6.\" modification, are permitted provided that the following conditions
7.\" are met:
8.\" 1. Redistributions of source code must retain the above copyright
--- 11 unchanged lines hidden (view full) ---
20.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23.\" CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26.\" DAMAGE.
27.\"
28.\" $FreeBSD: head/share/man/man9/disk.9 188917 2009-02-22 13:38:16Z trasz $
29.\"
30.Dd February 18, 2004
31.Dt DISK 9
32.Os
33.Sh NAME
34.Nm disk
35.Nd kernel disk storage API
36.Sh SYNOPSIS
--- 103 unchanged lines hidden (view full) ---
140Optional: invoked when an I/O control operation is initiated on the disk device.
141Please note that for security reasons these operations should not
142be able to affect other devices than the one on which they are performed.
143.It Vt "dumper_t *" Va d_dump
144Optional: if configured with
145.Xr dumpon 8 ,
146this function is invoked from a very restricted system state after a
147kernel panic to record a copy of the system RAM to the disk.
148.El
149.Ss Mandatory Media Properties
150The following fields identify the size and granularity of the disk device.
151These fields must stay stable from return of the drivers open method until
152the close method is called, but it is perfectly legal to modify them in
153the open method before returning.
154.Bl -tag -width indent
155.It Vt u_int Va d_sectorsize
--- 19 unchanged lines hidden (view full) ---
175necessary for the correct calculation of disk partitioning.
176.It Vt u_int Va d_stripeoffset , Vt u_int Va d_stripesize
177These two fields can be used to describe the width and location of
178natural performance boundaries for most disk technologies.
179Please see
180.Pa src/sys/geom/notes
181for details.
182.It Vt char Va d_ident[DISK_IDENT_SIZE]
183This field can and should be used to store disk's serial number.
184.El
185.Ss Driver Private Data
186This field may be used by the device driver to store a pointer to
187private data to implement the disk service.
188.Bl -tag -width indent
189.It Vt "void *" Va d_drv1
190Private data pointer.
191Typically used to store a pointer to the drivers
192.Vt softc
193structure for this disk device.
194.El
195.Sh SEE ALSO
196.Xr GEOM 4 ,
197.Xr devfs 5
198.Sh AUTHORS
199This manual page was written by
200.An Robert Watson .