I have gone through all of the functions and added

the correct includes and changed the functions as
    requested.

Submitted by: Chad David <davidc@acns.ab.ca>
This commit is contained in:
Alfred Perlstein 2001-07-11 03:51:44 +00:00
parent 17bbfb5897
commit 0ef36920de
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79574
19 changed files with 39 additions and 80 deletions

View File

@ -33,12 +33,10 @@
.Nm BUF_LOCK
.Nd "Locks a buffer"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/buf.h>
.Ft int
.Fo BUF_LOCK
.Fa "struct buf *bp"
.Fa "int locktype"
.Fc
.Fn BUF_LOCK "struct buf *bp" "int locktype"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm BUF_LOCKFREE
.Nd "Destroys the buffers lock"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/buf.h>
.Ft void
.Fo BUF_LOCKFREE
.Fa "struct buf *bp"
.Fc
.Fn BUF_LOCKFREE "struct buf *bp"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm BUF_LOCKINIT
.Nd "Unlocks a locked buffer"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/buf.h>
.Ft void
.Fo BUF_LOCKINIT
.Fa "struct buf *bp"
.Fc
.Fn BUF_LOCKINIT "struct buf *bp"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm BUF_REFCNT
.Nd "Returns the reference count of the buffer lock"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/buf.h>
.Ft int
.Fo BUF_REFCNT
.Fa "struct buf *bp"
.Fc
.Fn BUF_REFCNT "struct buf *bp"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,15 +33,10 @@
.Nm BUF_TIMELOCK
.Nd "Locks a buffer"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/buf.h>
.Ft int
.Fo BUF_TIMELOCK
.Fa "struct buf *bp"
.Fa "int locktype"
.Fa "char *wmesg"
.Fa "int catch"
.Fa "int timo"
.Fc
.Fn BUF_TIMELOCK "struct buf *bp" "int locktype" "char *wmesg" "int catch" "int timo"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm BUF_UNLOCK
.Nd "Unlocks a locked buffer"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/buf.h>
.Ft void
.Fo BUF_UNLOCK
.Fa "struct buf *bp"
.Fc
.Fn BUF_UNLOCK "struct buf *bp"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm cdevsw_add
.Nd "Adds a cdevsw entry"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/conf.h>
.Ft int
.Fo cdevsw_add
.Fa "struct cdevsw *newentry"
.Fc
.Fn cdevsw_add "struct cdevsw *newentry"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm cdevsw_remove
.Nd "Removes a cdevsw entry"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/conf.h>
.Ft int
.Fo cdevsw_add
.Fa "struct cdevsw *oldentry"
.Fc
.Fn cdevsw_add "struct cdevsw *oldentry"
.Sh DESCRIPTION
The
.Nm

View File

@ -35,9 +35,7 @@
.Sh SYNOPSIS
.Fd #include <sys/conf.h>
.Ft struct cdevsw *
.Fo devsw
.Fa "dev_t dev"
.Fc
.Fn devsw "dev_t dev"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm lockcount
.Nd "Returns the reference count of a lock"
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/lockmgr.h>
.Ft int
.Fo lockcount
.Fa "struct lock *lkp"
.Fc
.Fn lockcount "struct lock *lkp"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm lockdestroy
.Nd "Destroys a lock"
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/lockmgr.h>
.Ft int
.Fo lockdestroy
.Fa "struct lock *lkp"
.Fc
.Fn lockdestroy "struct lock *lkp"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,14 +33,10 @@
.Nm lockmgr
.Nd "Aquires, releases and updates locks"
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/lockmgr.h>
.Ft int
.Fo lockmgr
.Fa "struct lock *lkp"
.Fa "u_int flags"
.Fa "struct mtx *interlkp"
.Fa "struct proc *p"
.Fc
.Fn lockmgr "struct lock *lkp" "u_int flags" "struct mtx *interlkp" "struct proc *p"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm lockmgr_printinfo
.Nd "Prints information about the lock."
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/lockmgr.h>
.Ft void
.Fo lockmgr_printinfo
.Fa "struct lock *lkp"
.Fc
.Fn lockmgr_printinfo "struct lock *lkp"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,12 +33,10 @@
.Nm lockstatus
.Nd "Returns the lock status"
.Sh SYNOPSIS
.Fd #include <sys/types.h>
.Fd #include <sys/lockmgr.h>
.Ft int
.Fo lockstatus
.Fa "struct lock *lkp"
.Fa "struct proc *p"
.Fc
.Fn lockstatus "struct lock *lkp" "struct proc *p"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,13 +33,10 @@
.Nm vfs_busy
.Nd "Marks a mount point as busy."
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/mount.h>
.Ft int
.Fo vfs_busy
.Fa "struct mount *mp"
.Fa "int flags"
.Fa "struct mtx *interlkp"
.Fa "struct proc *p"
.Fc
.Fn vfs_busy "struct mount *mp" "int flags" "struct mtx *interlkp" "struct proc *p"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,15 +33,10 @@
.Nm vfs_mount
.Nd "Generic filesystem mount function"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/mount.h>
.Ft int
.Fo vfs_mount
.Fa "struct proc *vp"
.Fa "char *fstype"
.Fa "char *fspath"
.Fa "int fsflags"
.Fa "void *fsdata"
.Fc
.Fn vfs_mount "struct proc *vp" "char *fstype" "char *fspath" "int fsflags" "void *fsdata"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,11 +33,10 @@
.Nm vfs_unbusy
.Nd "Unbusy a mount point.
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/mount.h>
.Ft void
.Fo vfs_unbusy
.Fa "struct mount *mp"
.Fa "struct proc *p"
.Fc
.Fn vfs_unbusy "struct mount *mp" "struct proc *p"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,16 +33,10 @@
.Nm vinvalbuf
.Nd "Flushes and invalidates all buffers associated with a vnode"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/vnode.h>
.Ft int
.Fo vinvalbuf
.Fa "struct vnode *vp"
.Fa "int flags"
.Fa "struct ucred *cred"
.Fa "struct proc *p"
.Fa "int slpflag"
.Fa "int slptimeo"
.Fc
.Fn vinvalbuf "struct vnode *vp" "int flags" "struct ucred *cred" "struct proc *p" "int slpflag" "int slptimeo"
.Sh DESCRIPTION
The
.Nm

View File

@ -33,12 +33,10 @@
.Nm vn_isdisk
.Nd "Checks if the vnode represents a disk"
.Sh SYNOPSIS
.Fd #include <sys/param.h>
.Fd #include <sys/vnode.h>
.Ft int
.Fo vn_isdisk
.Fa "struct vnode *vp"
.Fa "int *errp"
.Fc
.Fn vn_isdisk "struct vnode *vp" "int *errp"
.Sh DESCRIPTION
The
.Nm