sysdecode_kevent(3)
π sysdecode_kevent(3) β bestie edition π
okay so this is the sysdecode_kevent(3) page, and it's from the Library Functions Manual β manual name folded in right here, no cap. It's all about describing the fields inside a kevent structure, and it is lowkey iconic for debug output. π«Ά
π§ NAME π§
sysdecode_kevent,sysdecode_kevent_fflags,sysdecode_kevent_filter,sysdecode_kevent_flagsβ output description ofkeventstructure fields
π LIBRARY π
library βlibsysdecodeβ
β¨ SYNOPSIS β¨
#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);
πΈ DESCRIPTION πΈ
These functions provide text descriptions of struct kevent fields. literally their whole job is making those fields make sense in text form. π
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). slay. π
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. so if it doesn't know the filter, it's giving βno thoughts, just NULL.β π
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). consistency queen πβ¨
π RETURN VALUES π
- The
sysdecode_kevent_filterfunction returns the name of afilterorNULLif thefiltervalue is unknown. - The
sysdecode_kevent_flagsfunction returnstrueif any flags in theflagsfield were decoded andfalseif no flags were decoded.
π¦ SEE ALSO π¦
sysdecode(3), sysdecode_enum(3), sysdecode_mask(3)
mwah π β this page is from Debian, dated November 24, 2017. periodt. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 2017 John Baldwin <jhb@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms