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
This commit is contained in:
parent
9b81f3a945
commit
7d12015159
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=14991
@ -1,5 +1,5 @@
|
|||||||
# @(#)Makefile 8.1 (Berkeley) 6/5/93
|
# @(#)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>
|
.include <bsd.prog.mk>
|
||||||
|
@ -25,28 +25,24 @@
|
|||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" 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
|
.Dd December 31, 1995
|
||||||
.Os FreeBSD
|
.Os FreeBSD
|
||||||
.Dt DEVFS_ADD_DEVSW 9
|
.Dt DEVFS_ADD_DEVSWF 9
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
.Nm devfs_add_devsw
|
.Nm devfs_add_devswf
|
||||||
.Nd wire device into devswitch table
|
.Nd wire device into devswitch table
|
||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Fd #include <sys/devfsext.h>
|
.Fd #include <sys/devfsext.h>
|
||||||
.Ft void *
|
.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
|
.Sh DESCRIPTION
|
||||||
The call that adds an entry into devfs is
|
The call that adds an entry into devfs is
|
||||||
.Nm devfs_add_devsw .
|
.Nm devfs_add_devswf .
|
||||||
.Pp
|
.Pp
|
||||||
It's arguments are:
|
It's arguments are:
|
||||||
.Bl -tag -width 8X
|
.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
|
.It Ar devsw
|
||||||
the address of the devsw entry the name should access
|
the address of the devsw entry the name should access
|
||||||
.It Ar minor
|
.It Ar minor
|
||||||
@ -59,6 +55,8 @@ Owner UID
|
|||||||
Owner GID
|
Owner GID
|
||||||
.It Ar perms
|
.It Ar perms
|
||||||
Permissions (e.g. rwxr--r-- = 0744)
|
Permissions (e.g. rwxr--r-- = 0744)
|
||||||
|
.It Ar fmt
|
||||||
|
Formatted string including name, and, if applicable, path to device within DEVFS
|
||||||
.El
|
.El
|
||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
It returns a token that can be used to link another name to the same
|
It returns a token that can be used to link another name to the same
|
@ -25,7 +25,7 @@
|
|||||||
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
.\" 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
|
.Dd December 31, 1995
|
||||||
.Os FreeBSD
|
.Os FreeBSD
|
||||||
@ -36,22 +36,21 @@
|
|||||||
.Sh SYNOPSIS
|
.Sh SYNOPSIS
|
||||||
.Fd #include <sys/devfsext.h>
|
.Fd #include <sys/devfsext.h>
|
||||||
.Ft void *
|
.Ft void *
|
||||||
.Fn devfs_link "char *path" "char *name" "void *original"
|
.Fn devfs_link "void *original" "char *fmt" "..."
|
||||||
.Sh DESCRIPTION
|
.Sh DESCRIPTION
|
||||||
The function
|
The function
|
||||||
.Nm
|
.Nm
|
||||||
takes a token from a previous call to
|
takes a token from a previous call to
|
||||||
.Fn devfs_add_devsw
|
.Fn devfs_add_devswf
|
||||||
or
|
or
|
||||||
.Fn devfs_link
|
.Fn devfs_link
|
||||||
as argument, and links it to an alias location denoted by
|
as argument, and links it to an alias location denoted by
|
||||||
.Ar path
|
.Ar fmt
|
||||||
and
|
string.
|
||||||
.Ar name .
|
|
||||||
.Sh RETURN VALUES
|
.Sh RETURN VALUES
|
||||||
It returns a token for the newly linked devfs entry.
|
It returns a token for the newly linked devfs entry.
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr devfs_add_devsw 9
|
.Xr devfs_add_devswf 9
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
The function
|
The function
|
||||||
.Nm
|
.Nm
|
||||||
|
Loading…
Reference in New Issue
Block a user