summaryrefslogtreecommitdiff
path: root/lib/libc/sys/sa_stacks.2
blob: 61ca0e3e620bd7f825294d8566a173014c3a44d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
.\"     $NetBSD: sa_stacks.2,v 1.6 2004/12/12 05:56:45 snj Exp $
.\"
.\" Copyright (c)2004 YAMAMOTO Takashi,
.\" All rights reserved.
.\"
.\" 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.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
.\"
.\" ------------------------------------------------------------
.Dd December 12, 2004
.Dt SA_STACKS 2
.Os
.Sh NAME
.Nm sa_stacks
.Nd register scheduler activation upcall stacks
.\" ------------------------------------------------------------
.Sh LIBRARY
.Lb libc
.\" ------------------------------------------------------------
.Sh SYNOPSIS
.In sa.h
.Ft int
.Fn sa_stacks \
    "int num" \
    "stack_t *stacks"
.\" ------------------------------------------------------------
.Sh DESCRIPTION
.Fn sa_stacks
is used to register scheduler activation upcall stacks.
.Fa stacks
is an array of
.Fa num
of
.Vt stack_t .
.Pp
An upcall handler should be registered by
.Fn sa_register
beforehand.
.\" ------------------------------------------------------------
.Sh RETURN VALUES
On success,
.Fn sa_stacks
returns the number of stacks registered.
Otherwise, a value of \-1 is returned and
.Va errno
is set to indicate the error.
.\" ------------------------------------------------------------
.Sh SEE ALSO
.Xr sa_register 2 ,
.Xr pthread 3
b8c8ba833a59'>First work on COMPAT_LINUX/amd64manu 2005-02-26nuke trailing whitespaceperry 2004-03-26all ports define __HAVE_SIGINFO now, so remove the CPP conditionalsdrochner 2003-09-25constify sendsig/trapsignalchristos 2003-09-06SA_SIGINFO changeschristos 2003-06-29Back out the lwp/ktrace changes. They contained a lot of colateral damage,fvdl 2003-06-28Pass lwp pointers throughtout the kernel, as required, so that the lwpid candarrenr 2003-04-09Use PAGE_SIZE rather than NBPG.thorpej 2003-01-18Merge the nathanw_sa branch.thorpej 2002-11-21back previous off; port can only supply LINUX_ELF_AUX_ENTRIES if it alsojdolecek 2002-11-15Fix LINUX_ELF_AUX_ENTRIES sociability issue with Mips based portswdk 2002-11-13add generic linux compat ELF copyargs functionjdolecek 2002-08-26Implement passing AT_{E,R}{U,G}ID in the elf aux vector, like solaris.christos 2002-04-02rename sysctl_linux() to linux_sysctl() and hook it into emul_linuxjdolecek 2002-03-21Don't bitch if we don't have support for a particular arch. This makes itchristos 2002-03-20emulation specific sysctls. Also change the kernel date to nov 11 as requestedchristos 2002-01-14Crude first cut at ARMLinux binary compatibility. Successfully runsbjh21 2001-09-22Enable Mips Linux emulation in header filesmanu 2001-07-29Adjust to the new copyargs() footprint.christos 2001-06-18Add an e_trapsignal member to struct emul, so that emulated processes canchristos 2001-01-19Added Linux compatibility support for powerpc portsmanu 2000-11-21restructure struct emul and execsw, in preparation to make emulations LKMable:jdolecek 1998-12-15Added linux compat support on m68k ports.itohy 1998-10-04Assign my copyright to TNF. Merge with others were appropriate.fvdl 1998-10-03Attempt to fix the mess.christos 1998-10-01Move compat/linux/linux_exec.h to common.erh 1998-01-24Prototype new functions.mycroft 1996-09-26adapt ELF-using compat code to use new ELF definitions/code. At this point,cgd 1996-06-13- Pass the Elf32_Ehdr in the linux probe function, and use it!christos