1996-12-14 22:34:11 +00:00
|
|
|
.\" Copyright (c) 1996
|
|
|
|
.\" Mike Pritchard <mpp@FreeBSD.org>. All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1992, 1993, 1994
|
|
|
|
.\" The Regents of the University of California. All rights reserved.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software donated to Berkeley by
|
|
|
|
.\" Jan-Simon Pendry.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
2014-03-14 03:07:51 +00:00
|
|
|
.\" 3. Neither the name of the University nor the names of its contributors
|
1996-12-14 22:34:11 +00:00
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
1997-03-07 03:28:23 +00:00
|
|
|
.\"
|
1999-08-28 00:22:10 +00:00
|
|
|
.\" $FreeBSD$
|
1997-03-07 03:28:23 +00:00
|
|
|
.\"
|
2012-02-09 10:09:12 +00:00
|
|
|
.Dd February 9, 2012
|
1999-08-15 10:48:36 +00:00
|
|
|
.Dt DEVFS 5
|
2001-07-10 15:31:11 +00:00
|
|
|
.Os
|
1996-12-14 22:34:11 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm devfs
|
2002-12-12 17:26:04 +00:00
|
|
|
.Nd device file system
|
1996-12-14 22:34:11 +00:00
|
|
|
.Sh SYNOPSIS
|
2004-07-02 19:55:26 +00:00
|
|
|
.Bd -literal
|
2001-03-15 02:06:44 +00:00
|
|
|
devfs /dev devfs rw 0 0
|
2004-07-02 19:55:26 +00:00
|
|
|
.Ed
|
1996-12-14 22:34:11 +00:00
|
|
|
.Sh DESCRIPTION
|
2002-12-12 17:26:04 +00:00
|
|
|
The device file system, or
|
2000-11-20 18:41:33 +00:00
|
|
|
.Nm ,
|
2001-07-14 19:41:16 +00:00
|
|
|
provides access to kernel's device
|
2002-12-12 17:26:04 +00:00
|
|
|
namespace in the global file system namespace.
|
1996-12-14 22:34:11 +00:00
|
|
|
The conventional mount point is
|
2001-03-15 02:06:44 +00:00
|
|
|
.Pa /dev .
|
1996-12-14 22:34:11 +00:00
|
|
|
.Pp
|
2002-12-12 17:26:04 +00:00
|
|
|
The file system includes several directories, links, symbolic links
|
2004-07-03 18:29:24 +00:00
|
|
|
and devices, some of which can also be written.
|
|
|
|
In a chroot'ed
|
1996-12-14 22:34:11 +00:00
|
|
|
environment,
|
|
|
|
.Nm
|
|
|
|
can be used to create a new
|
2001-03-15 02:06:44 +00:00
|
|
|
.Pa /dev
|
1996-12-14 22:34:11 +00:00
|
|
|
mount point.
|
2003-12-29 00:40:44 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Xr mknod 8
|
2004-06-16 08:33:57 +00:00
|
|
|
tool can be used to recover deleted device entries under
|
|
|
|
.Nm .
|
2010-09-18 19:23:14 +00:00
|
|
|
.Pp
|
|
|
|
The
|
|
|
|
.Xr fdescfs 5
|
|
|
|
filesystem is an alternate means for populating
|
|
|
|
.Pa /dev/fd .
|
|
|
|
The character devices that both
|
|
|
|
.Nm
|
|
|
|
and
|
|
|
|
.Xr fdescfs 5
|
|
|
|
present in
|
|
|
|
.Pa /dev/fd
|
|
|
|
correspond to the open file descriptors of the process
|
|
|
|
accessing the directory.
|
|
|
|
.Nm
|
|
|
|
only creates files for the standard file descriptors
|
|
|
|
.Pa 0 ,
|
|
|
|
.Pa 1
|
|
|
|
and
|
|
|
|
.Pa 2 .
|
|
|
|
.Xr fdescfs 5
|
|
|
|
creates files for all open descriptors.
|
2012-02-09 10:09:12 +00:00
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Fl o Ar options
|
|
|
|
Use the specified mount
|
|
|
|
.Ar options ,
|
|
|
|
as described in
|
|
|
|
.Xr mount 8 .
|
|
|
|
The following devfs file system-specific options are available:
|
|
|
|
.Bl -tag -width indent
|
|
|
|
.It Cm ruleset Ns No = Ns Ar ruleset
|
|
|
|
Set ruleset number
|
|
|
|
.Ar ruleset
|
2012-02-28 07:35:07 +00:00
|
|
|
as the current ruleset for the mount-point and apply all its rules.
|
|
|
|
If the ruleset number
|
2012-02-09 10:09:12 +00:00
|
|
|
.Ar ruleset
|
|
|
|
does not exist, an empty ruleset with the number
|
|
|
|
.Ar ruleset
|
2012-02-28 07:35:07 +00:00
|
|
|
is created.
|
|
|
|
See
|
2012-02-09 10:09:12 +00:00
|
|
|
.Xr devfs 8
|
|
|
|
for more information on working with devfs rulesets.
|
|
|
|
.El
|
|
|
|
.El
|
1996-12-14 22:34:11 +00:00
|
|
|
.Sh FILES
|
2001-03-15 02:06:44 +00:00
|
|
|
.Bl -tag -width /dev/XXXX -compact
|
|
|
|
.It Pa /dev
|
1996-12-14 22:34:11 +00:00
|
|
|
The normal
|
2001-07-14 19:41:16 +00:00
|
|
|
.Nm
|
1996-12-14 22:34:11 +00:00
|
|
|
mount point.
|
|
|
|
.El
|
2006-09-18 15:24:20 +00:00
|
|
|
.Sh EXAMPLES
|
|
|
|
To mount a
|
|
|
|
.Nm
|
|
|
|
volume located on
|
2010-05-29 20:24:01 +00:00
|
|
|
.Pa /mychroot/dev :
|
2006-09-18 15:24:20 +00:00
|
|
|
.Pp
|
2010-05-29 20:24:01 +00:00
|
|
|
.Dl "mount -t devfs devfs /mychroot/dev"
|
1996-12-14 22:34:11 +00:00
|
|
|
.Sh SEE ALSO
|
2010-09-18 19:23:14 +00:00
|
|
|
.Xr fdescfs 5 ,
|
2011-01-22 13:18:28 +00:00
|
|
|
.Xr devfs 8 ,
|
2006-05-18 13:37:13 +00:00
|
|
|
.Xr mount 8
|
1996-12-14 22:34:11 +00:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
2001-07-14 19:41:16 +00:00
|
|
|
.Nm
|
2002-12-12 17:26:04 +00:00
|
|
|
file system first appeared in
|
2010-05-30 13:32:39 +00:00
|
|
|
.Fx 2.0 .
|
|
|
|
It became the preferred method for accessing devices in
|
|
|
|
.Fx 5.0
|
|
|
|
and the only method in
|
|
|
|
.Fx 6.0 .
|
1996-12-14 22:38:09 +00:00
|
|
|
The
|
1996-12-14 22:34:11 +00:00
|
|
|
.Nm
|
2001-07-14 19:41:16 +00:00
|
|
|
manual page first appeared in
|
1996-12-14 22:34:11 +00:00
|
|
|
.Fx 2.2 .
|
1998-03-12 07:31:21 +00:00
|
|
|
.Sh AUTHORS
|
2001-07-14 19:41:16 +00:00
|
|
|
The
|
1996-12-14 22:34:11 +00:00
|
|
|
.Nm
|
1998-03-12 07:31:21 +00:00
|
|
|
manual page was written by
|
2014-06-23 08:27:27 +00:00
|
|
|
.An Mike Pritchard Aq Mt mpp@FreeBSD.org .
|