Adapt man pages to ktrace-lwp.
This commit is contained in:
parent
153f1146ed
commit
7d7fe4b786
@ -1,4 +1,4 @@
|
||||
# $NetBSD: mi,v 1.836 2005/12/20 16:28:55 thorpej Exp $
|
||||
# $NetBSD: mi,v 1.837 2005/12/20 19:53:15 rpaulo Exp $
|
||||
./etc/mtree/set.comp comp-sys-root
|
||||
./usr/bin/addr2line comp-debug-bin bfd
|
||||
./usr/bin/ar comp-util-bin bfd
|
||||
@ -5093,7 +5093,8 @@
|
||||
./usr/share/man/cat9/cdevvp.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/checkalias.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/child_return.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/chooseproc.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/chooseproc.0 comp-obsolete obsolete
|
||||
./usr/share/man/cat9/chooselwp.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/clock_secs_to_ymdhms.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/clock_ymdhms_to_secs.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/closef.0 comp-sys-catman .cat
|
||||
@ -5132,7 +5133,8 @@
|
||||
./usr/share/man/cat9/cpu_dumpconf.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/cpu_dumpsize.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/cpu_exit.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/cpu_fork.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/cpu_fork.0 comp-obsolete obsolete
|
||||
./usr/share/man/cat9/cpu_lwp_fork.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/cpu_idle.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/cpu_initclocks.0 comp-sys-catman .cat
|
||||
./usr/share/man/cat9/cpu_number.0 comp-sys-catman .cat
|
||||
@ -9021,7 +9023,8 @@
|
||||
./usr/share/man/man9/cdevvp.9 comp-sys-man .man
|
||||
./usr/share/man/man9/checkalias.9 comp-sys-man .man
|
||||
./usr/share/man/man9/child_return.9 comp-sys-man .man
|
||||
./usr/share/man/man9/chooseproc.9 comp-sys-man .man
|
||||
./usr/share/man/man9/chooseproc.9 comp-obsolete obsolete
|
||||
./usr/share/man/man9/chooselwp.9 comp-sys-man .man
|
||||
./usr/share/man/man9/clock_secs_to_ymdhms.9 comp-sys-man .man
|
||||
./usr/share/man/man9/clock_ymdhms_to_secs.9 comp-sys-man .man
|
||||
./usr/share/man/man9/closef.9 comp-sys-man .man
|
||||
@ -9060,7 +9063,8 @@
|
||||
./usr/share/man/man9/cpu_dumpconf.9 comp-sys-man .man
|
||||
./usr/share/man/man9/cpu_dumpsize.9 comp-sys-man .man
|
||||
./usr/share/man/man9/cpu_exit.9 comp-sys-man .man
|
||||
./usr/share/man/man9/cpu_fork.9 comp-sys-man .man
|
||||
./usr/share/man/man9/cpu_fork.9 comp-obsolete obsolete
|
||||
./usr/share/man/man9/cpu_lwp_fork.9 comp-sys-man .man
|
||||
./usr/share/man/man9/cpu_idle.9 comp-sys-man .man
|
||||
./usr/share/man/man9/cpu_initclocks.9 comp-sys-man .man
|
||||
./usr/share/man/man9/cpu_number.9 comp-sys-man .man
|
||||
|
@ -1,13 +1,13 @@
|
||||
# $NetBSD: Makefile,v 1.183 2005/11/24 08:20:51 yamt Exp $
|
||||
# $NetBSD: Makefile,v 1.184 2005/12/20 19:53:14 rpaulo Exp $
|
||||
|
||||
# Makefile for section 9 (kernel function and variable) manual pages.
|
||||
|
||||
MAN= altq.9 arc4random.9 arp.9 audio.9 autoconf.9 \
|
||||
bitmask_snprintf.9 bcmp.9 bcopy.9 bzero.9 \
|
||||
buffercache.9 bufq.9 bus_dma.9 bus_space.9 \
|
||||
callout.9 cardbus.9 chooseproc.9 cnmagic.9 config.9 cons.9 copy.9 \
|
||||
callout.9 cardbus.9 chooselwp.9 cnmagic.9 config.9 cons.9 copy.9 \
|
||||
cpu_configure.9 cpu_coredump.9 cpu_dumpconf.9 cpu_exit.9 cpu_idle.9 \
|
||||
cpu_fork.9 \
|
||||
cpu_lwp_fork.9 \
|
||||
cpu_initclocks.9 cpu_number.9 cpu_reboot.9 cpu_rootconf.9 \
|
||||
cpu_startup.9 cpu_swapout.9 \
|
||||
cred.9 ctxsw.9 curproc.9 \
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: audio.9,v 1.33 2005/02/20 19:55:05 wiz Exp $
|
||||
.\" $NetBSD: audio.9,v 1.34 2005/12/20 19:53:14 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd February 14, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt AUDIO 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -93,7 +93,7 @@ struct audio_hw_if {
|
||||
void (*)(void *), void *, const audio_params_t *);
|
||||
int (*trigger_input)(void *, void *, void *, int,
|
||||
void (*)(void *), void *, const audio_params_t *);
|
||||
int (*dev_ioctl)(void *, u_long, caddr_t, int, struct proc *);
|
||||
int (*dev_ioctl)(void *, u_long, caddr_t, int, struct lwp *);
|
||||
};
|
||||
|
||||
typedef struct audio_params {
|
||||
@ -503,7 +503,7 @@ Once started the transfer may be stopped using
|
||||
Return 0 on success, otherwise an error code.
|
||||
.It Dv int dev_ioctl(void *hdl, u_long cmd, caddr_t addr,
|
||||
.br
|
||||
.Dv "int flag, struct proc *p)"
|
||||
.Dv "int flag, struct lwp *l)"
|
||||
.br
|
||||
optional, is called when an
|
||||
.Xr ioctl 2
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: bus_dma.9,v 1.33 2005/03/09 21:22:59 matt Exp $
|
||||
.\" $NetBSD: bus_dma.9,v 1.34 2005/12/20 19:53:14 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1996, 1997, 1998, 2001, 2005 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -35,7 +35,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd March 10, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt BUS_DMA 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -63,7 +63,7 @@
|
||||
.Fn bus_dmamap_destroy "bus_dma_tag_t tag" "bus_dmamap_t dmam"
|
||||
.Ft int
|
||||
.Fn bus_dmamap_load "bus_dma_tag_t tag" "bus_dmamap_t dmam" "void *buf" \
|
||||
"bus_size_t buflen" "struct proc *p" "int flags"
|
||||
"bus_size_t buflen" "struct lwp *l" "int flags"
|
||||
.Ft int
|
||||
.Fn bus_dmamap_load_mbuf "bus_dma_tag_t tag" "bus_dmamap_t dmam" \
|
||||
"struct mbuf *chain" "int flags"
|
||||
|
@ -1,10 +1,10 @@
|
||||
.\" $NetBSD: chooseproc.9,v 1.3 2003/04/16 13:35:26 wiz Exp $
|
||||
.\" $NetBSD: chooselwp.9,v 1.1 2005/12/20 19:53:14 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" Copyright (c) 2005 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" This code is derived from software contributed to The NetBSD Foundation
|
||||
.\" by Gregory McGarry.
|
||||
.\" by Gregory McGarry; and Rui Paulo.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
@ -34,37 +34,37 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 21, 2002
|
||||
.Dt CHOOSEPROC 9
|
||||
.Dd December 20, 2005
|
||||
.Dt CHOOSELWP 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm chooseproc
|
||||
.Nd select next process from system run queue
|
||||
.Nm chooselwp
|
||||
.Nd select next lightweight process from system run queue
|
||||
.Sh SYNOPSIS
|
||||
.In sys/proc.h
|
||||
.Ft struct proc *
|
||||
.Fn chooseproc "void"
|
||||
.In sys/lwp.h
|
||||
.Ft struct lwp *
|
||||
.Fn chooselwp "void"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn chooseproc
|
||||
.Fn chooselwp
|
||||
function is invoked by the scheduler to select the highest priority
|
||||
process from the system run queue.
|
||||
If a process is not available on the system run queue,
|
||||
.Fn chooseproc
|
||||
.Fn chooselwp
|
||||
shall go into an
|
||||
.Dq idle
|
||||
loop by invoking
|
||||
.Xr cpu_idle 9 .
|
||||
The variable
|
||||
.Va curproc
|
||||
.Va curlwp
|
||||
is set to
|
||||
.Dv NULL
|
||||
while
|
||||
.Fn chooseproc
|
||||
.Fn chooselwp
|
||||
is idle so that CPU time is not allocated to the outgoing process.
|
||||
.Pp
|
||||
The
|
||||
.Fn chooseproc
|
||||
.Fn chooselwp
|
||||
function must be called with the scheduler lock held
|
||||
.Pq see Xr SCHED_LOCK 9
|
||||
and at the
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: copy.9,v 1.16 2005/09/10 22:24:42 wiz Exp $
|
||||
.\" $NetBSD: copy.9,v 1.17 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1996, 2002 Jason R. Thorpe.
|
||||
.\" All rights reserved.
|
||||
@ -32,7 +32,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd August 28, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt COPY 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -57,9 +57,9 @@
|
||||
.Ft int
|
||||
.Fn copyoutstr "const void *kaddr" "void *uaddr" "size_t len" "size_t *done"
|
||||
.Ft int
|
||||
.Fn copyin_proc "struct proc *p" "const void *uaddr" "void *kaddr" "size_t len"
|
||||
.Fn copyin_proc "struct lwp *l" "const void *uaddr" "void *kaddr" "size_t len"
|
||||
.Ft int
|
||||
.Fn copyout_proc "struct proc *p" "const void *kaddr" "void *uaddr" "size_t len"
|
||||
.Fn copyout_proc "struct lwp *l" "const void *kaddr" "void *uaddr" "size_t len"
|
||||
.Ft int
|
||||
.Fn ioctl_copyin "int ioctlflags" "const void *src" "void *dst" "size_t len"
|
||||
.Ft int
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: cpu_coredump.9,v 1.6 2003/04/16 13:35:26 wiz Exp $
|
||||
.\" $NetBSD: cpu_coredump.9,v 1.7 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd May 24, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt CPU_COREDUMP 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -43,7 +43,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.In sys/signalvar.h
|
||||
.Ft int
|
||||
.Fn cpu_coredump "struct proc *p" "struct vnode *vp" "struct ucred *cred" \
|
||||
.Fn cpu_coredump "struct lwp *l" "struct vnode *vp" "struct ucred *cred" \
|
||||
"struct core *chdr"
|
||||
.Sh DESCRIPTION
|
||||
.Fn cpu_coredump
|
||||
|
@ -1,10 +1,10 @@
|
||||
.\" $NetBSD: cpu_fork.9,v 1.4 2003/04/16 13:35:26 wiz Exp $
|
||||
.\" $NetBSD: cpu_lwp_fork.9,v 1.1 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
.\"
|
||||
.\" This code is derived from software contributed to The NetBSD Foundation
|
||||
.\" by Gregory McGarry.
|
||||
.\" by Gregory McGarry; and Rui Paulo.
|
||||
.\"
|
||||
.\" Redistribution and use in source and binary forms, with or without
|
||||
.\" modification, are permitted provided that the following conditions
|
||||
@ -34,23 +34,23 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd May 23, 2002
|
||||
.Dt CPU_FORK 9
|
||||
.Dd December 20, 2005
|
||||
.Dt CPU_LWP_FORK 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm cpu_fork ,
|
||||
.Nm cpu_lwp_fork ,
|
||||
.Nm child_return ,
|
||||
.Nm proc_trampoline
|
||||
.Nd finish a fork operation
|
||||
.Sh SYNOPSIS
|
||||
.In sys/proc.h
|
||||
.Ft void
|
||||
.Fn cpu_fork "struct proc *p1" "struct proc *p2" "void *stack" \
|
||||
.Fn cpu_lwp_fork "struct lwp *l1" "struct lwp *l2" "void *stack" \
|
||||
"size_t stacksize" "void (*func)(void *)" "void *arg"
|
||||
.Ft void
|
||||
.Fn child_return "void *arg"
|
||||
.Sh DESCRIPTION
|
||||
.Fn cpu_fork
|
||||
.Fn cpu_lwp_fork
|
||||
is the machine-dependent portion of
|
||||
.Fn fork1
|
||||
which finishes a fork operation, with child process
|
||||
@ -60,7 +60,7 @@ It copies and updates the PCB and trap frame from the parent
|
||||
.Fa p1 ,
|
||||
making the child ready to run.
|
||||
.Pp
|
||||
.Fn cpu_fork
|
||||
.Fn cpu_lwp_fork
|
||||
rigs the child's kernel stack so that it will start in
|
||||
.Fn proc_trampoline .
|
||||
.Fn proc_trampoline
|
||||
@ -93,7 +93,7 @@ will pass
|
||||
and
|
||||
.Fa p2
|
||||
to
|
||||
.Fn cpu_fork
|
||||
.Fn cpu_lwp_fork
|
||||
as
|
||||
.Fa func
|
||||
and
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: cpu_swapout.9,v 1.3 2003/04/16 13:35:27 wiz Exp $
|
||||
.\" $NetBSD: cpu_swapout.9,v 1.4 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd May 24, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt CPU_SWAPOUT 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -42,12 +42,12 @@
|
||||
.Nm cpu_swapin ,
|
||||
.Nd machine-dependent swap interface
|
||||
.Sh SYNOPSIS
|
||||
.In sys/proc.h
|
||||
.In sys/lwp.h
|
||||
.In machine/cpu.h
|
||||
.Ft void
|
||||
.Fn cpu_swapout "struct proc *p"
|
||||
.Fn cpu_swapout "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn cpu_swapin "struct proc *p"
|
||||
.Fn cpu_swapin "struct lwp *l"
|
||||
.Sh DESCRIPTION
|
||||
.Fn cpu_swapout
|
||||
and
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: dofileread.9,v 1.5 2003/04/16 13:35:28 wiz Exp $
|
||||
.\" $NetBSD: dofileread.9,v 1.6 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 20, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt DOFILEREAD 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -46,18 +46,18 @@
|
||||
.Sh SYNOPSIS
|
||||
.In sys/file.h
|
||||
.Ft int
|
||||
.Fn dofileread "struct proc *p" "int fd" "struct file *fp" "void *buf" \
|
||||
.Fn dofileread "struct lwp *l" "int fd" "struct file *fp" "void *buf" \
|
||||
"size_t nbyte" "off_t *offset" "int flags" "register_t *retval"
|
||||
.Ft int
|
||||
.Fn dofilewrite "struct proc *p" "int fd" "struct file *fp" \
|
||||
.Fn dofilewrite "struct lwp *l" "int fd" "struct file *fp" \
|
||||
"const void *buf" "size_t nbyte" "off_t *offset" "int flags" \
|
||||
"register_t *retval"
|
||||
.Ft int
|
||||
.Fn dofilereadv "struct proc *p" "int fd" "struct file *fp" \
|
||||
.Fn dofilereadv "struct lwp *l" "int fd" "struct file *fp" \
|
||||
"const struct iovec *iovp" "int iovcnt" "off_t *offset" "int flags" \
|
||||
"register_t *retval"
|
||||
.Ft int
|
||||
.Fn dofilewritev "struct proc *p" "int fd" "struct file *fp" \
|
||||
.Fn dofilewritev "struct lwp *l" "int fd" "struct file *fp" \
|
||||
"const struct iovec *iovp" "int iovcnt" "off_t *offset" "int flags" \
|
||||
"register_t *retval"
|
||||
.Sh DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: driver.9,v 1.14 2005/06/20 13:25:25 peter Exp $
|
||||
.\" $NetBSD: driver.9,v 1.15 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 6, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt DRIVER 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -131,13 +131,13 @@ is defined with:
|
||||
.Pp
|
||||
.Bd -literal
|
||||
const struct cdevsw foo_cdevsw {
|
||||
int (*d_open)(dev_t, int, int, struct proc *);
|
||||
int (*d_close)(dev_t, int, int, struct proc *);
|
||||
int (*d_open)(dev_t, int, int, struct lwp *);
|
||||
int (*d_close)(dev_t, int, int, struct lwp *);
|
||||
int (*d_read)(dev_t, struct uio *, int);
|
||||
int (*d_write)(dev_t, struct uio *, int);
|
||||
int (*d_ioctl)(dev_t, u_long, caddr_t, int, struct proc *);
|
||||
int (*d_ioctl)(dev_t, u_long, caddr_t, int, struct lwp *);
|
||||
struct tty *(*d_tty)(dev_t);
|
||||
int (*d_poll)(dev_t, int, struct proc *);
|
||||
int (*d_poll)(dev_t, int, struct lwp *);
|
||||
paddr_t (*d_mmap)(dev_t, off_t, int);
|
||||
int d_type;
|
||||
};
|
||||
@ -162,10 +162,10 @@ is defined with:
|
||||
.Pp
|
||||
.Bd -literal
|
||||
const struct bdevsw foo_bdevsw {
|
||||
int (*d_open)(dev_t, int, int, struct proc *);
|
||||
int (*d_close)(dev_t, int, int, struct proc *);
|
||||
int (*d_open)(dev_t, int, int, struct lwp *);
|
||||
int (*d_close)(dev_t, int, int, struct lwp *);
|
||||
void (*d_strategy)(struct buf *);
|
||||
int (*d_ioctl)(dev_t, u_long, caddr_t, int, struct proc *);
|
||||
int (*d_ioctl)(dev_t, u_long, caddr_t, int, struct lwp *);
|
||||
int (*d_dump)(dev_t, daddr_t, caddr_t, size_t);
|
||||
int (*d_psize)(dev_t);
|
||||
int d_type;
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: file.9,v 1.6 2003/04/16 13:35:28 wiz Exp $
|
||||
.\" $NetBSD: file.9,v 1.7 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 12, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt FILE 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -49,7 +49,7 @@
|
||||
.Sh SYNOPSIS
|
||||
.In sys/file.h
|
||||
.Ft int
|
||||
.Fn closef "struct file *fp" "struct proc *p"
|
||||
.Fn closef "struct file *fp" "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn ffree "struct file *fp"
|
||||
.Ft int
|
||||
@ -57,7 +57,7 @@
|
||||
.Ft void
|
||||
.Fn FILE_USE "struct file *fp"
|
||||
.Ft void
|
||||
.Fn FILE_UNUSE "struct file *fp" "struct proc *p"
|
||||
.Fn FILE_UNUSE "struct file *fp" "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn FILE_SET_MATURE "struct file *fp"
|
||||
.Sh DESCRIPTION
|
||||
@ -84,14 +84,14 @@ struct file {
|
||||
int (*fo_write)(struct file *fp, off_t *offset,
|
||||
struct uio *uio, struct ucred *cred, int flags);
|
||||
int (*fo_ioctl)(struct file *fp, u_long com, caddr_t data,
|
||||
struct proc *p);
|
||||
struct lwp *l);
|
||||
int (*fo_fcntl)(struct file *fp, u_int com, caddr_t data,
|
||||
struct proc *p);
|
||||
struct lwp *l);
|
||||
int (*fo_poll)(struct file *fp, int events,
|
||||
struct proc *p);
|
||||
struct lwp *l);
|
||||
int (*fo_stat)(struct file *fp, struct stat *sp,
|
||||
struct proc *p);
|
||||
int (*fo_close)(struct file *fp, struct proc *p);
|
||||
struct lwp *l);
|
||||
int (*fo_close)(struct file *fp, struct lwp *l);
|
||||
} *f_ops;
|
||||
off_t f_offset;
|
||||
caddr_t f_data; /* descriptor data */
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: filedesc.9,v 1.5 2003/04/16 13:35:28 wiz Exp $
|
||||
.\" $NetBSD: filedesc.9,v 1.6 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 12, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt FILEDESC 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -60,37 +60,37 @@
|
||||
.In sys/file.h
|
||||
.In sys/filedesc.h
|
||||
.Ft int
|
||||
.Fn falloc "struct proc *p" "struct file **resultfp" "int *resultfd"
|
||||
.Fn falloc "struct lwp *l" "struct file **resultfp" "int *resultfd"
|
||||
.Ft struct file *
|
||||
.Fn fd_getfile "struct filedesc *fdp" "int fd"
|
||||
.Ft int
|
||||
.Fn dupfdopen "struct proc *p" "int indx" "int dfd" "int mode" "int error"
|
||||
.Fn dupfdopen "struct lwp *l" "int indx" "int dfd" "int mode" "int error"
|
||||
.Ft int
|
||||
.Fn fdalloc "struct proc *p" "int want" "int *result"
|
||||
.Fn fdalloc "struct lwp *l" "int want" "int *result"
|
||||
.Ft int
|
||||
.Fn fdavail "struct proc *p" "int n"
|
||||
.Fn fdavail "struct lwp *l" "int n"
|
||||
.Ft int
|
||||
.Fn fdcheckstd "struct proc *p"
|
||||
.Fn fdcheckstd "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn fdclear "struct proc *p"
|
||||
.Fn fdclear "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn fdcloseexec "struct proc *p"
|
||||
.Fn fdcloseexec "struct lwp *l"
|
||||
.Ft struct filedesc *
|
||||
.Fn fdcopy "struct proc *p"
|
||||
.Fn fdcopy "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn fdexpand "struct proc *p"
|
||||
.Fn fdexpand "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn fdfree "struct proc *p"
|
||||
.Fn fdfree "struct lwp *l"
|
||||
.Ft struct filedesc *
|
||||
.Fn fdinit "struct proc *p"
|
||||
.Fn fdinit "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn fdrelease "struct proc *p" "int fd"
|
||||
.Fn fdrelease "struct lwp *l" "int fd"
|
||||
.Ft void
|
||||
.Fn fdremove "struct filedesc *fdp" "int fd"
|
||||
.Ft void
|
||||
.Fn fdshare "struct proc *p1" "struct proc *p2"
|
||||
.Fn fdshare "struct lwp *l1" "struct lwp *l2"
|
||||
.Ft void
|
||||
.Fn fdunshare "struct proc *p"
|
||||
.Fn fdunshare "struct lwp *l"
|
||||
.Sh DESCRIPTION
|
||||
For user processes, all I/O is done through file descriptors.
|
||||
These file descriptors represent underlying objects supported by the kernel
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: fsetown.9,v 1.5 2003/10/14 14:59:03 wiz Exp $
|
||||
.\" $NetBSD: fsetown.9,v 1.6 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 22, 2003
|
||||
.Dd December 20, 2005
|
||||
.Dt FSETOWN 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -45,9 +45,9 @@
|
||||
.Sh SYNOPSIS
|
||||
.In sys/file.h
|
||||
.Ft int
|
||||
.Fn fsetown "struct proc *p" "pid_t *pgid" "int cmd" "const void *data"
|
||||
.Fn fsetown "struct lwp *l" "pid_t *pgid" "int cmd" "const void *data"
|
||||
.Ft int
|
||||
.Fn fgetown "struct proc *p" "pid_t pgid" "int cmd" "void *data"
|
||||
.Fn fgetown "struct lwp *l" "pid_t pgid" "int cmd" "void *data"
|
||||
.Ft void
|
||||
.Fn fownsignal "pid_t pgid" "int signo" "int code" "int band" "void *fdescdata"
|
||||
.Sh DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: isa.9,v 1.13 2003/06/30 12:31:16 wiz Exp $
|
||||
.\" $NetBSD: isa.9,v 1.14 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd May 10, 2003
|
||||
.Dd December 20, 2005
|
||||
.Dt ISA 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -102,7 +102,7 @@
|
||||
.Fn isa_free "void *addrp" "int pool"
|
||||
.Ft int
|
||||
.Fn isa_dmastart "isa_chipset_tag_t ic" "int chan" "bus_addr_t addr" \
|
||||
"bus_size_t size" "struct proc *proc" "int flags" "int bf"
|
||||
"bus_size_t size" "struct lwp *lwp" "int flags" "int bf"
|
||||
.Ft void
|
||||
.Fn isa_dmaabort "isa_chipset_tag_t ic" "int chan"
|
||||
.Ft bus_size_t
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: namei.9,v 1.9 2003/05/06 10:46:44 jmmv Exp $
|
||||
.\" $NetBSD: namei.9,v 1.10 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 13, 2001
|
||||
.Dd December 20, 2005
|
||||
.Dt NAMEI 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -45,7 +45,7 @@
|
||||
.Nd pathname lookup
|
||||
.Sh SYNOPSIS
|
||||
.In sys/namei.h
|
||||
.In sys/proc.h
|
||||
.In sys/lwp.h
|
||||
.In sys/uio.h
|
||||
.In sys/vnode.h
|
||||
.Ft int
|
||||
@ -57,7 +57,7 @@
|
||||
"struct componentname *cnp"
|
||||
.Ft void
|
||||
.Fn NDINIT "struct nameidata *ndp" "u_long op" "u_long flags" \
|
||||
"enum uio_seg segflg" "const char *namep" "struct proc *p"
|
||||
"enum uio_seg segflg" "const char *namep" "struct lwp *l"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: pmc.9,v 1.6 2005/10/31 12:05:21 wiz Exp $
|
||||
.\" $NetBSD: pmc.9,v 1.7 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 Wasabi Systems, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -33,7 +33,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 31, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt PMC 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -62,25 +62,25 @@
|
||||
.Ft int
|
||||
.Fn pmc_get_counter_type "int ctr"
|
||||
.Ft void
|
||||
.Fn pmc_save_context "struct proc *p"
|
||||
.Fn pmc_save_context "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn pmc_restore_context "struct proc *p"
|
||||
.Fn pmc_restore_context "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn pmc_enable_counter "struct proc *p" "int ctr"
|
||||
.Fn pmc_enable_counter "struct lwp *l" "int ctr"
|
||||
.Ft int
|
||||
.Fn pmc_disable_counter "struct proc *p" "int ctr"
|
||||
.Fn pmc_disable_counter "struct lwp *l" "int ctr"
|
||||
.Ft int
|
||||
.Fn pmc_counter_isrunning "struct proc *p" "int ctr"
|
||||
.Fn pmc_counter_isrunning "struct lwp *l" "int ctr"
|
||||
.Ft int
|
||||
.Fn pmc_counter_isconfigured "struct proc *p" "int ctr"
|
||||
.Fn pmc_counter_isconfigured "struct lwp *l" "int ctr"
|
||||
.Ft int
|
||||
.Fn pmc_configure_counter "struct proc *p" "int ctr" \
|
||||
.Fn pmc_configure_counter "struct lwp *l" "int ctr" \
|
||||
"struct pmc_counter_cfg *cfg"
|
||||
.Ft int
|
||||
.Fn pmc_get_counter_value "struct proc *p" "int ctr" "int flags" \
|
||||
.Fn pmc_get_counter_value "struct lwp *l" "int ctr" "int flags" \
|
||||
"uint64_t *pval"
|
||||
.Ft int
|
||||
.Fn pmc_accumulate "struct proc *p_parent" "struct proc *p_exiting"
|
||||
.Fn pmc_accumulate "struct lwp *l_parent" "struct lwp *l_exiting"
|
||||
.Ft int
|
||||
.Fn pmc_alloc_kernel_counter "int ctr" "struct pmc_counter_cfg *cfg"
|
||||
.Ft int
|
||||
@ -90,7 +90,7 @@
|
||||
.Ft int
|
||||
.Fn pmc_stop_profiling "int ctr"
|
||||
.Ft int
|
||||
.Fn PMC_ENABLED "struct proc *p"
|
||||
.Fn PMC_ENABLED "struct lwp *l"
|
||||
.Sh DESCRIPTION
|
||||
Provides a machine-independent interface to the hardware performance counters
|
||||
which are available on several CPU families.
|
||||
@ -171,20 +171,20 @@ CPU or counter configuration.
|
||||
For example, on an ia32 architecture, it may distinguish between
|
||||
586-, 686-, and K7-style counters.
|
||||
.sp
|
||||
.It Fn pmc_save_context "struct proc *p"
|
||||
.It Fn pmc_save_context "struct lwp *l"
|
||||
Saves the PMC context for the current process.
|
||||
This is called just before
|
||||
.Xr cpu_switch 9 .
|
||||
If there is kernel PMC state, it must be maintained across this call.
|
||||
.sp
|
||||
.It Fn pmc_restore_context "struct proc *p"
|
||||
.It Fn pmc_restore_context "struct lwp *l"
|
||||
Restores the PMC context for the current process.
|
||||
This is called just after
|
||||
.Xr cpu_switch 9
|
||||
returns.
|
||||
If there is kernel PMC state, it must be maintained across this call.
|
||||
.sp
|
||||
.It Fn pmc_enable_counter "struct proc *p" "int ctr"
|
||||
.It Fn pmc_enable_counter "struct lwp *l" "int ctr"
|
||||
Enables counter
|
||||
.Fa ctr
|
||||
for the specified process.
|
||||
@ -193,29 +193,29 @@ The counter should have already been configured with a call to
|
||||
This starts the counter running if it is not already started and enables
|
||||
any interrupts, as appropriate.
|
||||
.sp
|
||||
.It Fn pmc_disable_counter "struct proc *p" "int ctr"
|
||||
.It Fn pmc_disable_counter "struct lwp *l" "int ctr"
|
||||
Disables counter
|
||||
.Fa ctr
|
||||
for the specified process.
|
||||
This stops the counter from running, and disables any interrupts,
|
||||
as appropriate.
|
||||
.sp
|
||||
.It Fn pmc_counter_isrunning "struct proc *p" "int ctr"
|
||||
.It Fn pmc_counter_isrunning "struct lwp *l" "int ctr"
|
||||
Returns non-zero if the specified counter in the specified process is
|
||||
running or if the counter is running in the kernel.
|
||||
.sp
|
||||
.It Fn pmc_counter_isconfigured "struct proc *p" "int ctr"
|
||||
.It Fn pmc_counter_isconfigured "struct lwp *l" "int ctr"
|
||||
Returns non-zero if the specified counter in the specified process is
|
||||
configured or if the counter is in use by the kernel.
|
||||
.sp
|
||||
.It Fn pmc_configure_counter "struct proc *p" "int ctr" \
|
||||
.It Fn pmc_configure_counter "struct lwp *l" "int ctr" \
|
||||
"struct pmc_counter_cfg *cfg"
|
||||
Configures counter
|
||||
.Fa ctr
|
||||
according to the configuration information stored in
|
||||
.Fa cfg .
|
||||
.sp
|
||||
.It Fn pmc_get_counter_value "struct proc *p" "int ctr" "int flags" \
|
||||
.It Fn pmc_get_counter_value "struct lwp *l" "int ctr" "int flags" \
|
||||
"uint64_t *pval"
|
||||
Returns the value of counter
|
||||
.Fa ctr
|
||||
@ -226,7 +226,7 @@ The only recognized flag is
|
||||
which specifies that the returned counts should be accumulated values
|
||||
for any exited child processes.
|
||||
.sp
|
||||
.It Fn pmc_accumulate "struct proc *p_parent" "struct proc *p_exiting"
|
||||
.It Fn pmc_accumulate "struct lwp *l_parent" "struct lwp *l_exiting"
|
||||
Accumulates any counter data from the exiting process
|
||||
.Fa p_exiting
|
||||
into the counters for the parent process
|
||||
@ -253,7 +253,7 @@ for use by the kernel for profiling and configures it with
|
||||
Stops profiling with counter
|
||||
.Fa ctr .
|
||||
.sp
|
||||
.It Fn PMC_ENABLED "struct proc *p"
|
||||
.It Fn PMC_ENABLED "struct lwp *l"
|
||||
Returns non-zero if the given process or the kernel is using the PMC at all.
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: radio.9,v 1.3 2002/01/02 02:15:42 wiz Exp $
|
||||
.\" $NetBSD: radio.9,v 1.4 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\" $OpenBSD: radio.9,v 1.2 2001/10/08 08:52:50 mpech Exp $
|
||||
.\"
|
||||
.\" Copyright (c) Maxim Tsyplakov <tm@oganer.net>
|
||||
@ -24,7 +24,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.
|
||||
.\"
|
||||
.Dd September 29, 2001
|
||||
.Dd December 20, 2005
|
||||
.Dt RADIO 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -39,8 +39,8 @@ The interface between these is the
|
||||
structure.
|
||||
.Bd -literal
|
||||
struct radio_hw_if {
|
||||
int (*open)(void *, int, int, struct proc *);
|
||||
int (*close)(void *, int, int, struct proc *);
|
||||
int (*open)(void *, int, int, struct lwp *);
|
||||
int (*close)(void *, int, int, struct lwp *);
|
||||
int (*get_info)(void *, struct radio_info *);
|
||||
int (*set_info)(void *, struct radio_info *);
|
||||
int (*search)(void *, int);
|
||||
@ -75,12 +75,12 @@ The fields of
|
||||
.Va radio_hw_if
|
||||
are described in some more detail below.
|
||||
.Bd -literal
|
||||
int open (void *, int flags, int fmt, struct proc *p);
|
||||
int open (void *, int flags, int fmt, struct lwp *p);
|
||||
Optional.
|
||||
Is called when the radio device is opened.
|
||||
Returns 0 on success, otherwise an error code.
|
||||
|
||||
int close (void *, int flags, int fmt, struct proc *p);
|
||||
int close (void *, int flags, int fmt, struct lwp *p);
|
||||
Optional.
|
||||
Is called when the radio device is closed.
|
||||
Returns 0 on success, otherwise an error code.
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: ras.9,v 1.5 2003/04/16 13:35:33 wiz Exp $
|
||||
.\" $NetBSD: ras.9,v 1.6 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd August 12, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt RAS 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -47,11 +47,11 @@
|
||||
.In sys/proc.h
|
||||
.In sys/ras.h
|
||||
.Ft caddr_t
|
||||
.Fn ras_lookup "struct proc *p" "caddr_t addr"
|
||||
.Fn ras_lookup "struct lwp *l" "caddr_t addr"
|
||||
.Ft int
|
||||
.Fn ras_fork "struct proc *p1" "struct proc *p2"
|
||||
.Fn ras_fork "struct lwp *l1" "struct lwp *l2"
|
||||
.Ft int
|
||||
.Fn ras_purgeall "struct proc *p"
|
||||
.Fn ras_purgeall "struct lwp *l"
|
||||
.Sh DESCRIPTION
|
||||
Restartable atomic sequences are user code sequences which are
|
||||
guaranteed to execute without preemption.
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: scsipi.9,v 1.16 2003/10/05 17:48:49 bouyer Exp $
|
||||
.\" $NetBSD: scsipi.9,v 1.17 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\"
|
||||
.\" Copyright (c) 2001 Manuel Bouyer.
|
||||
@ -29,7 +29,7 @@
|
||||
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.\"
|
||||
.Dd April 22, 2001
|
||||
.Dd December 20, 2005
|
||||
.Dt SCSIPI 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -122,7 +122,7 @@ The following callbacks should be provided through the
|
||||
mandatory
|
||||
.It void Fn (*adapt_minphys) "struct buf *"
|
||||
mandatory
|
||||
.It int Fn (*adapt_ioctl) "struct scsipi_channel *" "u_long" "caddr_t" "int" "struct proc *"
|
||||
.It int Fn (*adapt_ioctl) "struct scsipi_channel *" "u_long" "caddr_t" "int" "struct lwp *"
|
||||
optional
|
||||
.It int Fn (*adapt_enable) "struct device *" "int"
|
||||
optional, set to
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: selrecord.9,v 1.5 2005/04/28 20:27:30 riz Exp $
|
||||
.\" $NetBSD: selrecord.9,v 1.6 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (C) 2002 Chad David <davidc@acns.ab.ca>. All rights reserved.
|
||||
.\"
|
||||
@ -28,7 +28,7 @@
|
||||
.\" $FreeBSD: src/share/man/man9/selrecord.9,v 1.2 2002/05/30 13:29:17 ru Exp $
|
||||
.\"
|
||||
.\" FreeBSD: .Dd March 20, 2002
|
||||
.Dd February 18, 2004
|
||||
.Dd December 20, 2005
|
||||
.Dt SELRECORD 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -39,7 +39,7 @@
|
||||
.In sys/param.h
|
||||
.In sys/select.h
|
||||
.Ft void
|
||||
.Fn selrecord "struct proc *selector" "struct selinfo *sip"
|
||||
.Fn selrecord "struct lwp *selector" "struct selinfo *sip"
|
||||
.Ft void
|
||||
.Fn selwakeup "struct selinfo *sip"
|
||||
.Ft void
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: setrunqueue.9,v 1.7 2003/04/16 13:35:33 wiz Exp $
|
||||
.\" $NetBSD: setrunqueue.9,v 1.8 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -31,7 +31,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 21, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt SETRUNQUEUE 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -43,10 +43,10 @@
|
||||
.In sys/proc.h
|
||||
.In sys/sched.h
|
||||
.Ft void
|
||||
.Fn setrunqueue "struct proc *p"
|
||||
.Fn setrunqueue "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn remrunqueue "struct proc *p"
|
||||
.Ft struct proc *
|
||||
.Fn remrunqueue "struct lwp *l"
|
||||
.Ft struct lwp *
|
||||
.Fn nextrunqueue "void"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: signal.9,v 1.11 2004/12/15 15:37:01 wiz Exp $
|
||||
.\" $NetBSD: signal.9,v 1.12 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1996, 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd January 7, 2004
|
||||
.Dd December 20, 2005
|
||||
.Dt SIGNAL 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -104,7 +104,7 @@
|
||||
.Ft void
|
||||
.Fn sched_psignal "struct proc *p" "int signum"
|
||||
.Ft int
|
||||
.Fn issignal "struct proc *p"
|
||||
.Fn issignal "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn postsig "int signum"
|
||||
.Ft void
|
||||
@ -353,7 +353,7 @@ This allows the tracing process to be notified of the signal.
|
||||
An alternate version of
|
||||
.Fn kpsignal
|
||||
which is intended for use by code which holds the scheduler lock.
|
||||
.It int Fn issignal "struct proc *p"
|
||||
.It int Fn issignal "struct lwp *l"
|
||||
.Pp
|
||||
This function determines which signal, if any, is to be posted to
|
||||
the process
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: ucom.9,v 1.11 2002/10/14 13:43:35 wiz Exp $
|
||||
.\" $NetBSD: ucom.9,v 1.12 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd April 15, 2000
|
||||
.Dd December 20, 2005
|
||||
.Dt UCOM 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -136,7 +136,7 @@ struct ucom_methods {
|
||||
#define UCOM_SET_BREAK 3
|
||||
int (*ucom_param)(void *sc, int portno, struct termios *);
|
||||
int (*ucom_ioctl)(void *sc, int portno, u_long cmd,
|
||||
caddr_t data, int flag, struct proc *p);
|
||||
caddr_t data, int flag, struct lwp *l);
|
||||
int (*ucom_open)(void *sc, int portno);
|
||||
void (*ucom_close)(void *sc, int portno);
|
||||
void (*ucom_read)(void *sc, int portno, u_char **ptr,
|
||||
@ -162,7 +162,7 @@ Set the speed, number of data bit, stop bits, and parity of a port
|
||||
according to the
|
||||
.Xr termios 4
|
||||
struct.
|
||||
.It Fn "int (*ucom_ioctl)" "void *sc, int portno, u_long cmd, caddr_t data, int flag, struct proc *p"
|
||||
.It Fn "int (*ucom_ioctl)" "void *sc, int portno, u_long cmd, caddr_t data, int flag, struct lwp *l"
|
||||
implements any non-standard
|
||||
.Xr ioctl 2
|
||||
that a device needs.
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: userret.9,v 1.6 2003/06/26 12:07:43 wiz Exp $
|
||||
.\" $NetBSD: userret.9,v 1.7 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,17 +34,17 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 21, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt USERRET 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm userret
|
||||
.Nd return path to user-mode execution
|
||||
.Sh SYNOPSIS
|
||||
.In sys/proc.h
|
||||
.In sys/lwp.h
|
||||
.In sys/sched.h
|
||||
.Ft void
|
||||
.Fn userret "struct proc *p"
|
||||
.Fn userret "struct lwp *l"
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Fn userret
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: uvm.9,v 1.69 2005/12/01 13:01:39 yamt Exp $
|
||||
.\" $NetBSD: uvm.9,v 1.70 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1998 Matthew R. Green
|
||||
.\" All rights reserved.
|
||||
@ -26,7 +26,7 @@
|
||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
.\" SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd December 1, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt UVM 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -76,7 +76,7 @@ There are also several miscellaneous functions.
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
.Fn uvm_init_limits "struct proc *p" ;
|
||||
.Fn uvm_init_limits "struct lwp *l" ;
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
@ -140,7 +140,7 @@ initialises the swap sub-system.
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
.Fn uvmspace_exec "struct proc *p" "vaddr_t start" "vaddr_t end" ;
|
||||
.Fn uvmspace_exec "struct lwp *l" "vaddr_t start" "vaddr_t end" ;
|
||||
.Pp
|
||||
.Ft struct vmspace *
|
||||
.br
|
||||
@ -152,11 +152,11 @@ initialises the swap sub-system.
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
.Fn uvmspace_share "struct proc *p1" "struct proc *p2" ;
|
||||
.Fn uvmspace_share "struct lwp *l1" "struct lwp *l2" ;
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
.Fn uvmspace_unshare "struct proc *p" ;
|
||||
.Fn uvmspace_unshare "struct lwp *l" ;
|
||||
.Pp
|
||||
.Ft boolean_t
|
||||
.br
|
||||
@ -794,7 +794,7 @@ addresses of pages not already in use.
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
.Fn uvm_swapin "struct proc *p" ;
|
||||
.Fn uvm_swapin "struct lwp *l" ;
|
||||
.Pp
|
||||
.Fn uvm_pageout
|
||||
is the main loop for the page daemon.
|
||||
@ -890,11 +890,11 @@ and should match what was used for previous call to
|
||||
.Pp
|
||||
.Ft int
|
||||
.br
|
||||
.Fn uvm_vslock "struct proc *p" "caddr_t addr" "size_t len" "vm_prot_t prot" ;
|
||||
.Fn uvm_vslock "struct lwp *l" "caddr_t addr" "size_t len" "vm_prot_t prot" ;
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
.Fn uvm_vsunlock "struct proc *p" "caddr_t addr" "size_t len" ;
|
||||
.Fn uvm_vsunlock "struct lwp *l" "caddr_t addr" "size_t len" ;
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
@ -902,15 +902,15 @@ and should match what was used for previous call to
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
.Fn uvm_fork "struct proc *p1" "struct proc *p2" "boolean_t shared" ;
|
||||
.Fn uvm_fork "struct lwp *l1" "struct lwp *l2" "boolean_t shared" ;
|
||||
.Pp
|
||||
.Ft int
|
||||
.br
|
||||
.Fn uvm_grow "struct proc *p" "vaddr_t sp" ;
|
||||
.Fn uvm_grow "struct lwp *l" "vaddr_t sp" ;
|
||||
.Pp
|
||||
.Ft int
|
||||
.br
|
||||
.Fn uvm_coredump "struct proc *p" "struct vnode *vp" "struct ucred *cred" "struct core *chdr" ;
|
||||
.Fn uvm_coredump "struct lwp *l" "struct vnode *vp" "struct ucred *cred" "struct core *chdr" ;
|
||||
.Pp
|
||||
.Ft void
|
||||
.br
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: vfsops.9,v 1.24 2005/11/09 20:17:55 pooka Exp $
|
||||
.\" $NetBSD: vfsops.9,v 1.25 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd September 23, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt VFSOPS 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -57,21 +57,21 @@
|
||||
.In sys/vnode.h
|
||||
.Ft int
|
||||
.Fn VFS_MOUNT "struct mount *mp" "const char *path" "void *data" \
|
||||
"struct nameidata *ndp" "struct proc *p"
|
||||
"struct nameidata *ndp" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VFS_START "struct mount *mp" "int flags" "struct proc *p"
|
||||
.Fn VFS_START "struct mount *mp" "int flags" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VFS_UNMOUNT "struct mount *mp" "int mntflags" "struct proc *p"
|
||||
.Fn VFS_UNMOUNT "struct mount *mp" "int mntflags" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VFS_ROOT "struct mount *mp" "struct vnode **vpp"
|
||||
.Ft int
|
||||
.Fn VFS_QUOTACTL "struct mount *mp" "int cmds" "uid_t uid" \
|
||||
"caddr_t arg" "struct proc *p"
|
||||
"caddr_t arg" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VFS_STATVFS "struct mount *mp" "struct statvfs *sbp" "struct proc *p"
|
||||
.Fn VFS_STATVFS "struct mount *mp" "struct statvfs *sbp" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VFS_SYNC "struct mount *mp" "int waitfor" "struct ucred *cred" \
|
||||
"struct proc *p"
|
||||
"struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VFS_VGET "struct mount *mp" "ino_t ino" "struct vnode **vpp"
|
||||
.Ft int
|
||||
@ -172,7 +172,7 @@ queried and modified using the
|
||||
interface.
|
||||
.Sh FUNCTIONS
|
||||
.Bl -tag -width compact
|
||||
.It Fn VFS_MOUNT "mp" "path" "data" "ndp" "p"
|
||||
.It Fn VFS_MOUNT "mp" "path" "data" "ndp" "l"
|
||||
Mount a file system specified by the mount structure
|
||||
.Fa mp
|
||||
on the mount point described by
|
||||
@ -203,7 +203,7 @@ This can be used, for instance, to convert a read-only filesystem to
|
||||
read-write.
|
||||
If the MNT_UPDATE flag is not specified, then this is a newly
|
||||
mounted filesystem.
|
||||
.It Fn VFS_START "mp" "flags" "p"
|
||||
.It Fn VFS_START "mp" "flags" "l"
|
||||
Make the file system specified by the mount structure
|
||||
.Fa mp
|
||||
operational.
|
||||
@ -217,7 +217,7 @@ is a set of flags for controlling the operation of
|
||||
This function is invoked after
|
||||
.Fn VFS_MOUNT
|
||||
and before the first access to the file system.
|
||||
.It Fn VFS_UNMOUNT "mp" "mntflags" "p"
|
||||
.It Fn VFS_UNMOUNT "mp" "mntflags" "l"
|
||||
Unmount a file system specified by the mount structure
|
||||
.Fa mp .
|
||||
The argument
|
||||
@ -243,7 +243,7 @@ While resolving the pathname, the pathname translation algorithm will
|
||||
have to go through the directory tree in the file system associated
|
||||
with that mount point and therefore requires the root vnode of the
|
||||
file system.
|
||||
.It Fn VFS_QUOTACTL "mp" "cmds" "uid" "arg" "p"
|
||||
.It Fn VFS_QUOTACTL "mp" "cmds" "uid" "arg" "l"
|
||||
Query/modify user space quotas for the file system specified by the
|
||||
mount structure
|
||||
.Fa mp .
|
||||
@ -260,7 +260,7 @@ interface.
|
||||
is the file system type specific implementation of the
|
||||
.Xr quotactl 2
|
||||
system call.
|
||||
.It Fn VFS_STATVFS "mp" "sbp" "p"
|
||||
.It Fn VFS_STATVFS "mp" "sbp" "l"
|
||||
Get file system statistics for the file system specified by the mount
|
||||
structure
|
||||
.Fa mp .
|
||||
@ -275,7 +275,7 @@ is the file system type specific implementation of the
|
||||
and
|
||||
.Xr fstatvfs 2
|
||||
system calls.
|
||||
.It Fn VFS_SYNC "mp" "waitfor" "cred" "p"
|
||||
.It Fn VFS_SYNC "mp" "waitfor" "cred" "l"
|
||||
Flush file system I/O buffers for the file system specified by the mount
|
||||
structure
|
||||
.Fa mp .
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: vfssubr.9,v 1.11 2005/09/23 12:10:32 jmmv Exp $
|
||||
.\" $NetBSD: vfssubr.9,v 1.12 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -78,7 +78,7 @@
|
||||
.Ft int
|
||||
.Fn vfs_mountroot "void"
|
||||
.Ft void
|
||||
.Fn vfs_unmountall "struct proc *p"
|
||||
.Fn vfs_unmountall "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vfs_busy "struct mount *mp" "int flags" "struct simplelock *interlkp"
|
||||
.Ft void
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: vnfileops.9,v 1.8 2003/04/20 04:42:15 gmcgarry Exp $
|
||||
.\" $NetBSD: vnfileops.9,v 1.9 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 14, 2002
|
||||
.Dd December 20, 2005
|
||||
.Dt VNFILEOPS 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -52,17 +52,17 @@
|
||||
.In sys/file.h
|
||||
.In sys/vnode.h
|
||||
.Ft int
|
||||
.Fn vn_closefile "struct file *fp" "struct proc *p"
|
||||
.Fn vn_closefile "struct file *fp" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_fcntl "struct file *fp" "u_int com" "void *data" "struct proc *p"
|
||||
.Fn vn_fcntl "struct file *fp" "u_int com" "void *data" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_ioctl "struct file *fp" "u_long com" "void *data" "struct proc *p"
|
||||
.Fn vn_ioctl "struct file *fp" "u_long com" "void *data" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_read "struct file *fp" "off_t *offset" "struct uio *uio" "struct ucred *cred" "int flags"
|
||||
.Ft int
|
||||
.Fn vn_poll "struct file *fp" "int events" "struct proc *p"
|
||||
.Fn vn_poll "struct file *fp" "int events" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_statfile "struct file *fp" "struct stat *sb" "struct proc *p"
|
||||
.Fn vn_statfile "struct file *fp" "struct stat *sb" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_write "struct file *fp" "off_t *offset" "struct uio *uio" "struct ucred *cred" "int flags"
|
||||
.Sh DESCRIPTION
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: vnode.9,v 1.28 2005/08/05 13:37:25 jmmv Exp $
|
||||
.\" $NetBSD: vnode.9,v 1.29 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd August 5, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt VNODE 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -95,11 +95,11 @@
|
||||
.Ft void
|
||||
.Fn ungetnewvnode "struct vnode *vp"
|
||||
.Ft int
|
||||
.Fn vrecycle "struct vnode *vp" "struct simplelock *inter_lkp" "struct proc *p"
|
||||
.Fn vrecycle "struct vnode *vp" "struct simplelock *inter_lkp" "struct lwp *l"
|
||||
.Ft void
|
||||
.Fn vgone "struct vnode *vp"
|
||||
.Ft void
|
||||
.Fn vgonel "struct vnode *vp" "struct proc *p"
|
||||
.Fn vgonel "struct vnode *vp" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vflush "struct mount *mp" "struct vnode *skipvp" "int flags"
|
||||
.Ft int
|
||||
@ -119,7 +119,7 @@
|
||||
.Ft void
|
||||
.Fn vflushbuf "struct vnode *vp" "int sync"
|
||||
.Ft int
|
||||
.Fn vinvalbuf "struct vnode *vp" "int flags" "struct ucred *cred" "struct proc *p" "int slpflag" "int slptimeo"
|
||||
.Fn vinvalbuf "struct vnode *vp" "int flags" "struct ucred *cred" "struct lwp *l" "int slpflag" "int slptimeo"
|
||||
.Ft int
|
||||
.Fn vtruncbuf "struct vnode *vp" "daddr_t lbn" "int slpflag" "int slptimeo"
|
||||
.Ft void
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: vnodeops.9,v 1.41 2005/11/02 14:22:36 yamt Exp $
|
||||
.\" $NetBSD: vnodeops.9,v 1.42 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001, 2005 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd November 2, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt VNODEOPS 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -107,19 +107,19 @@
|
||||
"struct componentname *cnp" "struct vattr *vap"
|
||||
.Ft int
|
||||
.Fn VOP_OPEN "struct vnode *vp" "int mode" "struct ucred *cred" \
|
||||
"struct proc *p"
|
||||
"struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_CLOSE "struct vnode *vp" "int fflag" "struct ucred *cred" \
|
||||
"struct proc *p"
|
||||
"struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_ACCESS "struct vnode *vp" "int mode" "struct ucred *cred" \
|
||||
"struct proc *p"
|
||||
"struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_GETATTR "struct vnode *vp" "struct vattr *vap" \
|
||||
"struct ucred *cred" "struct proc *p"
|
||||
"struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_SETATTR "struct vnode *vp" "struct vattr *vap" \
|
||||
"struct ucred *cred" "struct proc *p"
|
||||
"struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_READ "struct vnode *vp" "struct uio *uio" "int ioflag" \
|
||||
"struct ucred *cred"
|
||||
@ -128,20 +128,20 @@
|
||||
"struct ucred *cred"
|
||||
.Ft int
|
||||
.Fn VOP_IOCTL "struct vnode *vp" "u_long command" "void *data" \
|
||||
"int fflag" "struct ucred *cred" "struct proc *p"
|
||||
"int fflag" "struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_FCNTL "struct vnode *vp" "u_int command" "void *data" \
|
||||
"int fflag" "struct ucred *cred" "struct proc *p"
|
||||
"int fflag" "struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_POLL "struct vnode *vp" "int events" "struct proc *p"
|
||||
.Fn VOP_POLL "struct vnode *vp" "int events" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_REVOKE "struct vnode *vp" "int flags"
|
||||
.Ft int
|
||||
.Fn VOP_MMAP "struct vnode *vp" "int fflags" \
|
||||
"struct ucred *cred" "struct proc *p"
|
||||
"struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_FSYNC "struct vnode *vp" "struct ucred *cred" "int flags" \
|
||||
"off_t offlo" "off_t offhi" "struct proc *p"
|
||||
"off_t offlo" "off_t offhi" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_SEEK "struct vnode *vp" "off_t oldoff" "off_t newoff" \
|
||||
"struct ucred *cred"
|
||||
@ -172,9 +172,9 @@
|
||||
.Ft int
|
||||
.Fn VOP_ABORTOP "struct vnode *dvp" "struct componentname *cnp"
|
||||
.Ft int
|
||||
.Fn VOP_INACTIVE "struct vnode *vp" "struct proc *p"
|
||||
.Fn VOP_INACTIVE "struct vnode *vp" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_RECLAIM "struct vnode *vp" "struct proc *p"
|
||||
.Fn VOP_RECLAIM "struct vnode *vp" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_LOCK "struct vnode *vp" "int flags"
|
||||
.Ft int
|
||||
@ -192,7 +192,7 @@
|
||||
.Fn VOP_ADVLOCK "struct vnode *vp" "void *id" "int op" \
|
||||
"struct flock *fl" "int flags"
|
||||
.Ft int
|
||||
.Fn VOP_LEASE "struct vnode *vp" "struct proc *p" "struct ucred *cred" \
|
||||
.Fn VOP_LEASE "struct vnode *vp" "struct lwp *l" "struct ucred *cred" \
|
||||
"int flag"
|
||||
.Ft int
|
||||
.Fn VOP_WHITEOUT "struct vnode *dvp" "struct componentname *cnp" \
|
||||
@ -209,13 +209,13 @@
|
||||
.Fn VOP_BWRITE "struct buf *bp"
|
||||
.Ft int
|
||||
.Fn VOP_GETEXTATTR "struct vnode *vp" "int attrnamespace" "const char *name" \
|
||||
"struct uio *uio" "size_t *size" "struct ucred *cred" "struct proc *p"
|
||||
"struct uio *uio" "size_t *size" "struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_SETEXTATTR "struct vnode *vp" "int attrnamespace" "const char *name" \
|
||||
"struct uio *uio" "struct ucred *cred" "struct proc *p"
|
||||
"struct uio *uio" "struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn VOP_LISTEXTATTR "struct vnode *vp" "int attrnamespace" "struct uio *uio" \
|
||||
"size_t *size" "struct ucred *cred" "struct proc *p"
|
||||
"size_t *size" "struct ucred *cred" "struct lwp *l"
|
||||
.Pp
|
||||
Not all header files are required for each function.
|
||||
.Sh DESCRIPTION
|
||||
@ -515,7 +515,7 @@ this memory is released.
|
||||
If the device-special file is created successfully it will be released
|
||||
unless the SAVESTART flags in specified in
|
||||
.Em cnp-\*[Gt]cn_flags .
|
||||
.It Fn VOP_OPEN "vp" "mode" "cred" "p"
|
||||
.It Fn VOP_OPEN "vp" "mode" "cred" "l"
|
||||
Open a file.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -539,7 +539,7 @@ expects the vnode
|
||||
to be locked on entry and will leave it locked on return.
|
||||
If the operation is successful zero is returned, otherwise an
|
||||
appropriate error code is returned.
|
||||
.It Fn VOP_CLOSE "vp" "fflag" "cred" "p"
|
||||
.It Fn VOP_CLOSE "vp" "fflag" "cred" "l"
|
||||
Close a file.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -558,7 +558,7 @@ must be called after a file is finished with.
|
||||
expects at least a reference to be associated with the vnode and does
|
||||
not care whether the vnode is locked.
|
||||
The lock and reference state is left unchanged on return.
|
||||
.It Fn VOP_ACCESS "vp" "mode" "cred" "p"
|
||||
.It Fn VOP_ACCESS "vp" "mode" "cred" "l"
|
||||
Determine the accessibility (permissions) of the file against the
|
||||
specified credentials.
|
||||
The argument
|
||||
@ -579,7 +579,7 @@ otherwise an appropriate error code is returned.
|
||||
The vnode
|
||||
.Fa vp
|
||||
will be locked on entry and should remain locked on return.
|
||||
.It Fn VOP_GETATTR "vp" "vap" "cred" "p"
|
||||
.It Fn VOP_GETATTR "vp" "vap" "cred" "l"
|
||||
Get specific vnode attributes on a file.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -602,7 +602,7 @@ Attributes which are not available are set to the value VNOVAL.
|
||||
.Pp
|
||||
For more information on vnode attributes see
|
||||
.Xr vattr 9 .
|
||||
.It Fn VOP_SETATTR "vp" "vap" "cred" "p"
|
||||
.It Fn VOP_SETATTR "vp" "vap" "cred" "l"
|
||||
Set specific vnode attributes on a file.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -692,7 +692,7 @@ The low 16 bits are a bit mask which can contain the same flags as
|
||||
.Pp
|
||||
Zero is returned on success, otherwise an error is returned.
|
||||
The vnode should be locked on entry and remains locked on exit.
|
||||
.It Fn VOP_IOCTL "vp" "command" "data" "fflag" "cred" "p"
|
||||
.It Fn VOP_IOCTL "vp" "command" "data" "fflag" "cred" "l"
|
||||
Perform device-specific I/O.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -718,7 +718,7 @@ Most file systems do not supply a function for
|
||||
This function implements the
|
||||
.Xr ioctl 2
|
||||
system call.
|
||||
.It Fn VOP_FCNTL "vp" "command" "data" "fflag" "cred" "p"
|
||||
.It Fn VOP_FCNTL "vp" "command" "data" "fflag" "cred" "l"
|
||||
Perform file control.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -738,7 +738,7 @@ is the caller's credentials and
|
||||
the calling process.
|
||||
If the operation is successful, zero is returned, otherwise an
|
||||
appropriate error code is returned.
|
||||
.It Fn VOP_POLL "vp" "events" "p"
|
||||
.It Fn VOP_POLL "vp" "events" "l"
|
||||
Test if a poll event has occurred.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -767,7 +767,7 @@ all vnodes aliased to the vnode
|
||||
are also eliminated.
|
||||
If the operation is successful zero is returned, otherwise an
|
||||
appropriate error is returned.
|
||||
.It Fn VOP_MMAP "vp" "fflags" "cred" "p"
|
||||
.It Fn VOP_MMAP "vp" "fflags" "cred" "l"
|
||||
Map file into user address space.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -788,7 +788,7 @@ Most file systems do not supply a function for
|
||||
This function implements the
|
||||
.Xr mmap 2
|
||||
system call.
|
||||
.It Fn VOP_FSYNC "vp" "cred" "flags" "offlo" "offhi" "p"
|
||||
.It Fn VOP_FSYNC "vp" "cred" "flags" "offlo" "offhi" "l"
|
||||
Flush pending data buffers for a file to disk.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -1048,7 +1048,7 @@ The vnode should be locked on entry and will remain locked on return.
|
||||
Abort pending operation on vnode
|
||||
.Fa dvp .
|
||||
This operation is rarely implemented in file systems.
|
||||
.It Fn VOP_INACTIVE "vp" "p"
|
||||
.It Fn VOP_INACTIVE "vp" "l"
|
||||
Release the inactive vnode.
|
||||
.Fn VOP_INACTIVE
|
||||
is called when the kernel is no longer using the vnode.
|
||||
@ -1067,7 +1067,7 @@ appropriate error code is returned.
|
||||
The vnode
|
||||
.Fa vp
|
||||
must be locked on entry, and will be unlocked on return.
|
||||
.It Fn VOP_RECLAIM "vp" "p"
|
||||
.It Fn VOP_RECLAIM "vp" "l"
|
||||
Reclaim the vnode for another file system.
|
||||
.Fn VOP_RECLAIM
|
||||
is called when a vnode is being reused for a different file system.
|
||||
@ -1237,7 +1237,7 @@ use POSIX semantics for lock
|
||||
.Pp
|
||||
If the operation is successful zero is returned, otherwise an
|
||||
appropriate error is returned.
|
||||
.It Fn VOP_LEASE "vp" "p" "cred" "flags"
|
||||
.It Fn VOP_LEASE "vp" "l" "cred" "flags"
|
||||
Validate vnode credentials and operation type.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -1325,7 +1325,7 @@ The argument
|
||||
specifies the buffer to be written.
|
||||
If the operation is successful zero is returned, otherwise an
|
||||
appropriate error code is returned.
|
||||
.It Fn VOP_GETEXTATTR "vp" "attrnamespace" "name" "uio" "size" "cred" "p"
|
||||
.It Fn VOP_GETEXTATTR "vp" "attrnamespace" "name" "uio" "size" "cred" "l"
|
||||
Get an extended attribute.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -1361,7 +1361,7 @@ specifies the user credentials to use when authorizing the request.
|
||||
The argument
|
||||
.Fa p
|
||||
specifies the process requesting the extended attribute.
|
||||
.It Fn VOP_SETEXTATTR "vp" "attrnamespace" "name" "uio" "cred" "p"
|
||||
.It Fn VOP_SETEXTATTR "vp" "attrnamespace" "name" "uio" "cred" "l"
|
||||
Set an extended attribute.
|
||||
The argument
|
||||
.Fa vp
|
||||
@ -1382,7 +1382,7 @@ specifies the user credentials to use when authorizing the request.
|
||||
The argument
|
||||
.Fa p
|
||||
specifies the process setting the extended attribute.
|
||||
.It Fn VOP_LISTEXTATTR "vp" "attrnamespace" "uio" "size" "cred" "p"
|
||||
.It Fn VOP_LISTEXTATTR "vp" "attrnamespace" "uio" "size" "cred" "l"
|
||||
Retrieve the list of extended attributes.
|
||||
The argument
|
||||
.Fa vp
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: vnsubr.9,v 1.22 2005/06/06 02:04:03 wiz Exp $
|
||||
.\" $NetBSD: vnsubr.9,v 1.23 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd May 25, 2004
|
||||
.Dd December 20, 2005
|
||||
.Dt VNSUBR 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -64,11 +64,11 @@
|
||||
.Ft int
|
||||
.Fn vn_bwrite "void *ap"
|
||||
.Ft int
|
||||
.Fn vn_close "struct vnode *vp" "int flags" "struct ucred *cred" "struct proc *p"
|
||||
.Fn vn_close "struct vnode *vp" "int flags" "struct ucred *cred" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_default_error "void *v"
|
||||
.Ft int
|
||||
.Fn vn_isunder "struct vnode *dvp" "struct vnode *rvp" "struct proc *p"
|
||||
.Fn vn_isunder "struct vnode *dvp" "struct vnode *rvp" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_lock "struct vnode *vp" "int flags"
|
||||
.Ft void
|
||||
@ -85,12 +85,12 @@
|
||||
.Fo vn_rdwr
|
||||
.Fa "enum uio_rw rw" "struct vnode *vp" "caddr_t base"
|
||||
.Fa "int len" "off_t offset" "enum uio_seg segflg" "int ioflg"
|
||||
.Fa "struct ucred *cred" "size_t *aresid" "struct proc *p"
|
||||
.Fa "struct ucred *cred" "size_t *aresid" "struct lwp *l"
|
||||
.Fc
|
||||
.Ft int
|
||||
.Fn vn_readdir "struct file *fp" "char *buf" "int segflg" "u_int count" "int *done" "struct proc *p" "off_t **cookies" "int *ncookies"
|
||||
.Fn vn_readdir "struct file *fp" "char *buf" "int segflg" "u_int count" "int *done" "struct lwp *l" "off_t **cookies" "int *ncookies"
|
||||
.Ft int
|
||||
.Fn vn_stat "struct vnode *vp" "struct stat *sb" "struct proc *p"
|
||||
.Fn vn_stat "struct vnode *vp" "struct stat *sb" "struct lwp *l"
|
||||
.Ft int
|
||||
.Fn vn_writechk "struct vnode *vp"
|
||||
.Ft int
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: wsdisplay.9,v 1.15 2004/07/30 17:14:52 wiz Exp $
|
||||
.\" $NetBSD: wsdisplay.9,v 1.16 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd July 30, 2004
|
||||
.Dd December 20, 2005
|
||||
.Dt WSDISPLAY 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -110,7 +110,7 @@ child device.
|
||||
It has the following members:
|
||||
.Bd -literal
|
||||
int (*ioctl)(void *v, u_long cmd, caddr_t data,
|
||||
int flag, struct proc *p);
|
||||
int flag, struct lwp *l);
|
||||
paddr_t (*mmap)(void *v, off_t off, int prot);
|
||||
int (*alloc_screen)(void *,
|
||||
const struct wsscreen_descr *, void **,
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: wskbd.9,v 1.11 2004/06/05 15:24:04 rumble Exp $
|
||||
.\" $NetBSD: wskbd.9,v 1.12 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 7, 2001
|
||||
.Dd December 20, 2005
|
||||
.Dt WSKBD 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -88,7 +88,7 @@ It has the following members:
|
||||
int (*enable)(void *, int);
|
||||
void (*set_leds)(void *, int);
|
||||
int (*ioctl)(void *v, u_long cmd, caddr_t data,
|
||||
int flag, struct proc *p);
|
||||
int flag, struct lwp *l);
|
||||
.Ed
|
||||
.Pp
|
||||
The
|
||||
|
@ -1,4 +1,4 @@
|
||||
.\" $NetBSD: wsmouse.9,v 1.11 2005/10/25 02:25:32 wiz Exp $
|
||||
.\" $NetBSD: wsmouse.9,v 1.12 2005/12/20 19:53:15 rpaulo Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
.\" All rights reserved.
|
||||
@ -34,7 +34,7 @@
|
||||
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
.\" POSSIBILITY OF SUCH DAMAGE.
|
||||
.\"
|
||||
.Dd October 19, 2005
|
||||
.Dd December 20, 2005
|
||||
.Dt WSMOUSE 9
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -72,7 +72,7 @@ It has the following members:
|
||||
.Bd -literal
|
||||
int (*enable)(void *);
|
||||
int (*ioctl)(void *v, u_long cmd, caddr_t data,
|
||||
int flag, struct proc *p);
|
||||
int flag, struct lwp *l);
|
||||
void (*disable)(void *);
|
||||
.Ed
|
||||
.Pp
|
||||
|
Loading…
Reference in New Issue
Block a user