Changeset View
Changeset View
Standalone View
Standalone View
lib/libc/sys/kqueue.2
Show All 18 Lines | |||||||||||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||||||||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||||||||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" 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 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||||||||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||||||||||
.\" | .\" | ||||||||||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||||||||||
.\" | .\" | ||||||||||||
.Dd April 13, 2022 | .Dd May 10, 2022 | ||||||||||||
.Dt KQUEUE 2 | .Dt KQUEUE 2 | ||||||||||||
.Os | .Os | ||||||||||||
.Sh NAME | .Sh NAME | ||||||||||||
.Nm kqueue , | .Nm kqueue , | ||||||||||||
.Nm kevent | .Nm kevent | ||||||||||||
.Nd kernel event notification mechanism | .Nd kernel event notification mechanism | ||||||||||||
.Sh LIBRARY | .Sh LIBRARY | ||||||||||||
.Lb libc | .Lb libc | ||||||||||||
▲ Show 20 Lines • Show All 237 Lines • ▼ Show 20 Lines | |||||||||||||
.Fa udata | .Fa udata | ||||||||||||
value presently associated. | value presently associated. | ||||||||||||
This is especially useful with | This is especially useful with | ||||||||||||
.Dv NOTE_TRIGGER | .Dv NOTE_TRIGGER | ||||||||||||
or flags like | or flags like | ||||||||||||
.Dv EV_ENABLE . | .Dv EV_ENABLE . | ||||||||||||
This flag may not be used with | This flag may not be used with | ||||||||||||
.Dv EV_ADD . | .Dv EV_ADD . | ||||||||||||
.It Dv EV_EXCLUSIVE | |||||||||||||
Sets an exclusive wakeup mode for the kernel event queue, assotiated | |||||||||||||
markj: The flag applies to the knote, not the entire queue. | |||||||||||||
with descriptor | |||||||||||||
.Fa kq , | |||||||||||||
and kevent, identified by pair | |||||||||||||
.Fa ident | |||||||||||||
and | |||||||||||||
.Fa filter . | |||||||||||||
When an event occurs and multiple waiters present, only one of them | |||||||||||||
will receive an event. | |||||||||||||
pauamma_gundo.comUnsubmitted Not Done Inline Actions
pauamma_gundo.com: | |||||||||||||
.El | .El | ||||||||||||
.Pp | .Pp | ||||||||||||
The predefined system filters are listed below. | The predefined system filters are listed below. | ||||||||||||
Arguments may be passed to and from the filter via the | Arguments may be passed to and from the filter via the | ||||||||||||
.Va fflags | .Va fflags | ||||||||||||
and | and | ||||||||||||
.Va data | .Va data | ||||||||||||
fields in the kevent structure. | fields in the kevent structure. | ||||||||||||
▲ Show 20 Lines • Show All 576 Lines • Show Last 20 Lines |
The flag applies to the knote, not the entire queue.