| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | .\" $NetBSD: kqueue.2,v 1.52 2020/10/31 10:51:59 wiz Exp $ | | 1 | .\" $NetBSD: kqueue.2,v 1.53 2020/10/31 14:35:28 christos Exp $ |
2 | .\" | | 2 | .\" |
3 | .\" Copyright (c) 2000 Jonathan Lemon | | 3 | .\" Copyright (c) 2000 Jonathan Lemon |
4 | .\" All rights reserved. | | 4 | .\" All rights reserved. |
5 | .\" | | 5 | .\" |
6 | .\" Copyright (c) 2001, 2002, 2003 The NetBSD Foundation, Inc. | | 6 | .\" Copyright (c) 2001, 2002, 2003 The NetBSD Foundation, Inc. |
7 | .\" All rights reserved. | | 7 | .\" All rights reserved. |
8 | .\" | | 8 | .\" |
9 | .\" Portions of this documentation is derived from text contributed by | | 9 | .\" Portions of this documentation is derived from text contributed by |
10 | .\" Luke Mewburn. | | 10 | .\" Luke Mewburn. |
11 | .\" | | 11 | .\" |
12 | .\" Redistribution and use in source and binary forms, with or without | | 12 | .\" Redistribution and use in source and binary forms, with or without |
13 | .\" modification, are permitted provided that the following conditions | | 13 | .\" modification, are permitted provided that the following conditions |
14 | .\" are met: | | 14 | .\" are met: |
| @@ -382,26 +382,27 @@ Returns when there is data to read; | | | @@ -382,26 +382,27 @@ Returns when there is data to read; |
382 | contains the number of bytes available. | | 382 | contains the number of bytes available. |
383 | .Pp | | 383 | .Pp |
384 | When the last writer disconnects, the filter will set EV_EOF in | | 384 | When the last writer disconnects, the filter will set EV_EOF in |
385 | .Va flags . | | 385 | .Va flags . |
386 | This may be cleared by passing in EV_CLEAR, at which point the | | 386 | This may be cleared by passing in EV_CLEAR, at which point the |
387 | filter will resume waiting for data to become available before | | 387 | filter will resume waiting for data to become available before |
388 | returning. | | 388 | returning. |
389 | .It "BPF devices" | | 389 | .It "BPF devices" |
390 | Returns when the BPF buffer is full, the BPF timeout has expired, or | | 390 | Returns when the BPF buffer is full, the BPF timeout has expired, or |
391 | when the BPF has | | 391 | when the BPF has |
392 | .Dq immediate mode | | 392 | .Dq immediate mode |
393 | enabled and there is any data to read; | | 393 | enabled and there is any data to read; |
394 | .Va data | | 394 | .Va data |
| | | 395 | contains the number of bytes available. |
395 | .El | | 396 | .El |
396 | .It Dv EVFILT_WRITE | | 397 | .It Dv EVFILT_WRITE |
397 | Takes a descriptor as the identifier, and returns whenever | | 398 | Takes a descriptor as the identifier, and returns whenever |
398 | it is possible to write to the descriptor. | | 399 | it is possible to write to the descriptor. |
399 | For sockets, pipes, fifos, and ttys, | | 400 | For sockets, pipes, fifos, and ttys, |
400 | .Va data | | 401 | .Va data |
401 | will contain the amount of space remaining in the write buffer. | | 402 | will contain the amount of space remaining in the write buffer. |
402 | The filter will set EV_EOF when the reader disconnects, and for | | 403 | The filter will set EV_EOF when the reader disconnects, and for |
403 | the fifo case, this may be cleared by use of EV_CLEAR. | | 404 | the fifo case, this may be cleared by use of EV_CLEAR. |
404 | Note that this filter is not supported for vnodes. | | 405 | Note that this filter is not supported for vnodes. |
405 | .Pp | | 406 | .Pp |
406 | For sockets, the low water mark and socket error handling is | | 407 | For sockets, the low water mark and socket error handling is |
407 | identical to the EVFILT_READ case. | | 408 | identical to the EVFILT_READ case. |