sysdecode_kevent_flags(3)

sysdecode_kevent_flags3

Output description of kevent structure fields

Part of sysdecode_kevent(3).

Usage

#include <sysdecode.h>

void

sysdecode_kevent_fflags(FILE *fp, short filter, int fflags, int base);

bool

sysdecode_kevent_flags(FILE *fp, int flags, int *rem);

const char *

sysdecode_kevent_filter(int filter);

Library

library “libsysdecode”

Overview

These functions provide text descriptions of struct kevent fields.

The sysdecode_kevent_fflags() function outputs a text description of the fflags member of a struct kevent to the stream fp. For the EVFILT_READ, EVFILT_WRITE, EVFILT_VNODE, EVFILT_PROC, EVFILT_PROCDESC, EVFILT_TIMER, and EVFILT_USER filters, sysdecode_kevent_fflags() outputs a bitmask of filter-specific NOTE_* flags as documented in kevent(2). For other values of filter, the value of fflags is output in the indicated base (one of 8, 10, or 16).

The sysdecode_kevent_filter() function returns a text description of the filter member of a struct kevent. NULL is returned if the filter value is unknown.

The sysdecode_kevent_flags() function outputs a text description of the flags member of a struct kevent to the stream fp. This function uses the same calling convention and formatting as the other functions described in sysdecode_mask(3).

Return values

The sysdecode_kevent_filter function returns the name of a filter or NULL if the filter value is unknown.

The sysdecode_kevent_flags function returns true if any flags in the flags field were decoded and false if no flags were decoded.

Releases

23 releases since FreeBSD 11.2-RELEASE; the text changed 10 times.

  1. 11.2
  2. 11.3
  3. 11.4
  4. 12.0
  5. 12.1
  6. 12.2
  7. 12.3
  8. 12.4
  9. 13.0–13.1
  10. 13.2
  11. 13.3–16.0

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's mdoc source.