kqueue.2 (108028) | kqueue.2 (108087) |
---|---|
1.\" Copyright (c) 2000 Jonathan Lemon 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" | 1.\" Copyright (c) 2000 Jonathan Lemon 2.\" All rights reserved. 3.\" 4.\" Redistribution and use in source and binary forms, with or without 5.\" modification, are permitted provided that the following conditions 6.\" are met: 7.\" 1. Redistributions of source code must retain the above copyright 8.\" notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23.\" SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/lib/libc/sys/kqueue.2 108028 2002-12-18 09:22:32Z ru $ | 25.\" $FreeBSD: head/lib/libc/sys/kqueue.2 108087 2002-12-19 09:40:28Z ru $ |
26.\" 27.Dd April 14, 2000 28.Dt KQUEUE 2 29.Os 30.Sh NAME 31.Nm kqueue , 32.Nm kevent 33.Nd kernel event notification mechanism --- 50 unchanged lines hidden (view full) --- 84flag, then the descriptor table is shared, 85which will allow sharing of the kqueue between two processes. 86.Pp 87The 88.Fn kevent 89system call 90is used to register events with the queue, and return any pending 91events to the user. | 26.\" 27.Dd April 14, 2000 28.Dt KQUEUE 2 29.Os 30.Sh NAME 31.Nm kqueue , 32.Nm kevent 33.Nd kernel event notification mechanism --- 50 unchanged lines hidden (view full) --- 84flag, then the descriptor table is shared, 85which will allow sharing of the kqueue between two processes. 86.Pp 87The 88.Fn kevent 89system call 90is used to register events with the queue, and return any pending 91events to the user. |
92The |
|
92.Fa changelist | 93.Fa changelist |
94argument |
|
93is a pointer to an array of 94.Va kevent 95structures, as defined in 96.Aq Pa sys/event.h . 97All changes contained in the 98.Fa changelist 99are applied before any pending events are read from the queue. | 95is a pointer to an array of 96.Va kevent 97structures, as defined in 98.Aq Pa sys/event.h . 99All changes contained in the 100.Fa changelist 101are applied before any pending events are read from the queue. |
102The |
|
100.Fa nchanges | 103.Fa nchanges |
104argument |
|
101gives the size of 102.Fa changelist . | 105gives the size of 106.Fa changelist . |
107The |
|
103.Fa eventlist | 108.Fa eventlist |
109argument |
|
104is a pointer to an array of kevent structures. | 110is a pointer to an array of kevent structures. |
111The |
|
105.Fa nevents | 112.Fa nevents |
113argument |
|
106determines the size of 107.Fa eventlist . 108If 109.Fa timeout 110is a non-NULL pointer, it specifies a maximum interval to wait 111for an event, which will be interpreted as a struct timespec. If 112.Fa timeout 113is a NULL pointer, --- 378 unchanged lines hidden --- | 114determines the size of 115.Fa eventlist . 116If 117.Fa timeout 118is a non-NULL pointer, it specifies a maximum interval to wait 119for an event, which will be interpreted as a struct timespec. If 120.Fa timeout 121is a NULL pointer, --- 378 unchanged lines hidden --- |