summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorscrappy <scrappy@FreeBSD.org>1996-04-02 04:10:45 +0000
committerscrappy <scrappy@FreeBSD.org>1996-04-02 04:10:45 +0000
commita8a103bf15c0ab354b2c31bcd4b5f7a3737edb65 (patch)
tree911d9e6afead4878126d9decaa5e3d0517b68fb2 /share
parent2f09e43c8b805d1a32043af1d0dff4a7b260f6a5 (diff)
downloadFreeBSD-src-a8a103bf15c0ab354b2c31bcd4b5f7a3737edb65.zip
FreeBSD-src-a8a103bf15c0ab354b2c31bcd4b5f7a3737edb65.tar.gz
Makefile: added devfs_add_devswf.9, removed devfs_add_devsw.9
devfs_link.9: modified man page to reflect source code devfs_add_devsw.9: replaced by devfs_add_devswf.9 devfs_add_devswf.9: proper function for adding devices to DEVFS
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/Makefile2
-rw-r--r--share/man/man9/devfs_add_devswf.9 (renamed from share/man/man9/devfs_add_devsw.9)16
-rw-r--r--share/man/man9/devfs_link.913
3 files changed, 14 insertions, 17 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile
index 6506a6b..b8960c7 100644
--- a/share/man/man9/Makefile
+++ b/share/man/man9/Makefile
@@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 6/5/93
-MAN9= devfs_add_devsw.9 devfs_link.9 intro.9 style.9
+MAN9= devfs_add_devswf.9 devfs_link.9 intro.9 style.9
.include <bsd.prog.mk>
diff --git a/share/man/man9/devfs_add_devsw.9 b/share/man/man9/devfs_add_devswf.9
index 895de67..ae25c5b 100644
--- a/share/man/man9/devfs_add_devsw.9
+++ b/share/man/man9/devfs_add_devswf.9
@@ -25,28 +25,24 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: devfs_add_devsw.9,v 1.2 1996/01/30 13:51:51 mpp Exp $
+.\" $Id: devfs_add_devsw.9,v 1.3 1996/02/12 04:56:57 mpp Exp $
.\"
.Dd December 31, 1995
.Os FreeBSD
-.Dt DEVFS_ADD_DEVSW 9
+.Dt DEVFS_ADD_DEVSWF 9
.Sh NAME
-.Nm devfs_add_devsw
+.Nm devfs_add_devswf
.Nd wire device into devswitch table
.Sh SYNOPSIS
.Fd #include <sys/devfsext.h>
.Ft void *
-.Fn devfs_add_devsw "char *path" "char *name" "void *devsw" "int minor" "int chrblk" "uid_t uid" "gid_t gid" "int perms"
+.Fn devfs_add_devswf "void *devsw" "int minor" "int chrblk" "uid_t uid" "gid_t gid" "int perms" "char *fmt" "..."
.Sh DESCRIPTION
The call that adds an entry into devfs is
-.Nm devfs_add_devsw .
+.Nm devfs_add_devswf .
.Pp
It's arguments are:
.Bl -tag -width 8X
-.It Ar path
-the path to the device within DEVFS
-.It Ar name
-the name of the device
.It Ar devsw
the address of the devsw entry the name should access
.It Ar minor
@@ -59,6 +55,8 @@ Owner UID
Owner GID
.It Ar perms
Permissions (e.g. rwxr--r-- = 0744)
+.It Ar fmt
+Formatted string including name, and, if applicable, path to device within DEVFS
.El
.Sh RETURN VALUES
It returns a token that can be used to link another name to the same
diff --git a/share/man/man9/devfs_link.9 b/share/man/man9/devfs_link.9
index 3480dfd..3b978ac 100644
--- a/share/man/man9/devfs_link.9
+++ b/share/man/man9/devfs_link.9
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: devfs_link.9,v 1.1 1995/12/31 00:08:18 joerg Exp $
+.\" $Id: devfs_link.9,v 1.2 1996/02/12 04:56:58 mpp Exp $
.\"
.Dd December 31, 1995
.Os FreeBSD
@@ -36,22 +36,21 @@
.Sh SYNOPSIS
.Fd #include <sys/devfsext.h>
.Ft void *
-.Fn devfs_link "char *path" "char *name" "void *original"
+.Fn devfs_link "void *original" "char *fmt" "..."
.Sh DESCRIPTION
The function
.Nm
takes a token from a previous call to
-.Fn devfs_add_devsw
+.Fn devfs_add_devswf
or
.Fn devfs_link
as argument, and links it to an alias location denoted by
-.Ar path
-and
-.Ar name .
+.Ar fmt
+string.
.Sh RETURN VALUES
It returns a token for the newly linked devfs entry.
.Sh SEE ALSO
-.Xr devfs_add_devsw 9
+.Xr devfs_add_devswf 9
.Sh HISTORY
The function
.Nm
OpenPOWER on IntegriCloud