kse.2 (108028) | kse.2 (108087) |
---|---|
1.\" Copyright (c) 2002 Packet Design, LLC. 2.\" All rights reserved. 3.\" 4.\" Subject to the following obligations and disclaimer of warranty, 5.\" use and redistribution of this software, in source or object code 6.\" forms, with or without modifications are expressly permitted by 7.\" Packet Design; provided, however, that: 8.\" --- 19 unchanged lines hidden (view full) --- 28.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL 29.\" DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF 30.\" USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY THEORY OF 31.\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 33.\" THE USE OF THIS SOFTWARE, EVEN IF PACKET DESIGN IS ADVISED OF 34.\" THE POSSIBILITY OF SUCH DAMAGE. 35.\" | 1.\" Copyright (c) 2002 Packet Design, LLC. 2.\" All rights reserved. 3.\" 4.\" Subject to the following obligations and disclaimer of warranty, 5.\" use and redistribution of this software, in source or object code 6.\" forms, with or without modifications are expressly permitted by 7.\" Packet Design; provided, however, that: 8.\" --- 19 unchanged lines hidden (view full) --- 28.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, PUNITIVE, OR CONSEQUENTIAL 29.\" DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES, LOSS OF 30.\" USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY THEORY OF 31.\" LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 32.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 33.\" THE USE OF THIS SOFTWARE, EVEN IF PACKET DESIGN IS ADVISED OF 34.\" THE POSSIBILITY OF SUCH DAMAGE. 35.\" |
36.\" $FreeBSD: head/lib/libc/sys/kse.2 108028 2002-12-18 09:22:32Z ru $ | 36.\" $FreeBSD: head/lib/libc/sys/kse.2 108087 2002-12-19 09:40:28Z ru $ |
37.\" 38.Dd September 10, 2002 39.Dt KSE 2 40.Os 41.Sh NAME 42.Nm kse 43.Nd "kernel support for user threads" 44.Sh LIBRARY --- 240 unchanged lines hidden (view full) --- 285.Fn kse_release . 286It causes the KSE associated with the mailbox pointed to by 287.Fa mbx 288to be woken up, causing it to upcall. 289If the KSE has already woken up for another reason, this system call has no 290effect. 291The 292.Fa mbx | 37.\" 38.Dd September 10, 2002 39.Dt KSE 2 40.Os 41.Sh NAME 42.Nm kse 43.Nd "kernel support for user threads" 44.Sh LIBRARY --- 240 unchanged lines hidden (view full) --- 285.Fn kse_release . 286It causes the KSE associated with the mailbox pointed to by 287.Fa mbx 288to be woken up, causing it to upcall. 289If the KSE has already woken up for another reason, this system call has no 290effect. 291The 292.Fa mbx |
293argument |
|
293may be 294.Dv NULL 295to specify 296.Dq "any KSE in the current KSE group" . 297.Pp 298The 299.Fn kse_thr_interrupt 300system call --- 236 unchanged lines hidden (view full) --- 537The user is not the super user, and the system-imposed limit on the total 538number of KSE groups under execution by a single user would be exceeded. 539The limit is given by the 540.Xr sysctl 3 541MIB variable 542.Dv KERN_MAXPROCPERUID . 543.It Bq Er EAGAIN 544The user is not the super user, and the soft resource limit corresponding | 294may be 295.Dv NULL 296to specify 297.Dq "any KSE in the current KSE group" . 298.Pp 299The 300.Fn kse_thr_interrupt 301system call --- 236 unchanged lines hidden (view full) --- 538The user is not the super user, and the system-imposed limit on the total 539number of KSE groups under execution by a single user would be exceeded. 540The limit is given by the 541.Xr sysctl 3 542MIB variable 543.Dv KERN_MAXPROCPERUID . 544.It Bq Er EAGAIN 545The user is not the super user, and the soft resource limit corresponding |
545to the resource parameter | 546to the 547.Fa resource 548argument |
546.Dv RLIMIT_NPROC 547would be exceeded (see 548.Xr getrlimit 2 ) . 549.It Bq Er EFAULT | 549.Dv RLIMIT_NPROC 550would be exceeded (see 551.Xr getrlimit 2 ) . 552.It Bq Er EFAULT |
553The |
|
550.Fa mbx | 554.Fa mbx |
555argument |
|
551points to an address which is not a valid part of the process address space. 552.El 553.Pp 554The 555.Fn kse_exit 556system call 557will fail if: 558.Bl -tag -width Er --- 18 unchanged lines hidden (view full) --- 577.El 578.Pp 579The 580.Fn kse_wakeup 581system call 582will fail if: 583.Bl -tag -width Er 584.It Bq Er ESRCH | 556points to an address which is not a valid part of the process address space. 557.El 558.Pp 559The 560.Fn kse_exit 561system call 562will fail if: 563.Bl -tag -width Er --- 18 unchanged lines hidden (view full) --- 582.El 583.Pp 584The 585.Fn kse_wakeup 586system call 587will fail if: 588.Bl -tag -width Er 589.It Bq Er ESRCH |
590The |
|
585.Fa mbx | 591.Fa mbx |
592argument |
|
586is not 587.Dv NULL 588and the mailbox pointed to by 589.Fa mbx 590is not associated with any KSE in the process. 591.It Bq Er ESRCH | 593is not 594.Dv NULL 595and the mailbox pointed to by 596.Fa mbx 597is not associated with any KSE in the process. 598.It Bq Er ESRCH |
599The |
|
592.Fa mbx | 600.Fa mbx |
601argument |
|
593is 594.Dv NULL 595and the current KSE has no associated mailbox, i.e., the process is operating 596in traditional, unthreaded mode. 597.El 598.Pp 599The 600.Fn kse_thr_interrupt --- 44 unchanged lines hidden --- | 602is 603.Dv NULL 604and the current KSE has no associated mailbox, i.e., the process is operating 605in traditional, unthreaded mode. 606.El 607.Pp 608The 609.Fn kse_thr_interrupt --- 44 unchanged lines hidden --- |