xref: /freebsd/share/man/man4/nvd.4 (revision 15c433351f54e7cd5bec8d36c8e89e6a7fa55b26)
1.\"
2.\" Copyright (c) 2012-2016 Intel Corporation
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
9.\"    notice, this list of conditions, and the following disclaimer,
10.\"    without modification.
11.\" 2. Redistributions in binary form must reproduce at minimum a disclaimer
12.\"    substantially similar to the "NO WARRANTY" disclaimer below
13.\"    ("Disclaimer") and any redistribution must be conditioned upon
14.\"    including a substantially similar Disclaimer requirement for further
15.\"    binary redistribution.
16.\"
17.\" NO WARRANTY
18.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
21.\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22.\" HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
26.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
27.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28.\" POSSIBILITY OF SUCH DAMAGES.
29.\"
30.\" nvd driver man page.
31.\"
32.\" Author: Jim Harris <jimharris@FreeBSD.org>
33.\"
34.\" $FreeBSD$
35.\"
36.Dd January 28, 2016
37.Dt NVD 4
38.Os
39.Sh NAME
40.Nm nvd
41.Nd NVM Express disk driver
42.Sh SYNOPSIS
43To compile this driver into your kernel,
44place the following lines in your kernel configuration file:
45.Bd -ragged -offset indent
46.Cd "device nvme"
47.Cd "device nvd"
48.Ed
49.Pp
50Or, to load the driver as a module at boot, place the following lines in
51.Xr loader.conf 5 :
52.Bd -literal -offset indent
53nvme_load="YES"
54nvd_load="YES"
55.Ed
56.Sh DESCRIPTION
57The
58.Nm
59driver exposes NVM Express (NVMe) namespaces as disks to the kernel disk
60storage API.
61It depends on the
62.Xr nvme 4
63driver for notification of existing NVMe namespaces and submission of NVM
64I/O commands.
65.Pp
66Device nodes from the
67.Nm
68driver will have the format /dev/nvdX and are
69.Xr GEOM 4
70disks which can be partitioned by
71.Xr geom 8 .
72Note that device nodes from the
73.Xr nvme 4
74driver are not
75.Xr GEOM 4
76disks and cannot be partitioned.
77.Sh CONFIGURATION
78The
79.Nm
80driver defines a system-wide maximum delete size for NVMe devices.  The
81default is 1GB.  To select a different value, set the following tunable in
82.Xr loader.conf 5 :
83.Bd -literal -offset indent
84hw.nvd.delete_max=<delete size in bytes>
85.Ed
86.Sh SEE ALSO
87.Xr GEOM 4 ,
88.Xr nvme 4 ,
89.Xr geom 8 ,
90.Xr nvmecontrol 8 ,
91.Xr disk 9
92.Sh HISTORY
93The
94.Nm
95driver first appeared in
96.Fx 9.2 .
97.Sh AUTHORS
98.An -nosplit
99The
100.Nm
101driver was developed by Intel and originally written by
102.An Jim Harris Aq Mt jimharris@FreeBSD.org ,
103with contributions from Joe Golio at EMC.
104.Pp
105This man page was written by
106.An Jim Harris Aq Mt jimharris@FreeBSD.org .
107