STRUCT FDARRAY(9)
πΈ NAME πΈ
struct fdarray β Array of file descriptors. Yep bestie, that's the whole vibe, and this is the Kernel API Manual page for struct fdarray(9). Slay.
β¨ SYNOPSIS β¨
struct fdarray {
int nr;
int nr_alloc;
int nr_autogrow;
struct pollfd *entries;
struct priv {
union {
int idx;
void *ptr;
};
unsigned int flags;
} *priv;
};
π Members π
privβ per array entry priv area. Users should access just its contents, not set it to anything, because it is kept in synch withentries, being realloc'ed,*for instance, infdarray__{grow,filter}. It's giving "look, don't touch" energy, fr fr.{unnamed_union}β anonymous. That's the unnamed union moment, iykyk.
π« Description π«
I.e. using fda->priv[N].idx = * value where N < fda->nr is ok, but doing fda->priv = malloc(M) is not allowed. That's the rule, bestie β no cap.
π SEE ALSO π
- Kernel file
./tools/lib/api/fd/array.h
π That's the tea from ./tools/lib/api/fd, dated October 2026. Go be iconic with your file descriptor array, bestie! π
β¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms