DEFINE_XARRAY_FLAGS(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hey bestie πŸ’– welcome to DEFINE_XARRAY_FLAGS(9) from the Kernel API Manual. this one is short and sweet: it's all about defining an XArray with your own custom flags, and the vibes are very compiletime ✨

🌸 NAME 🌸

DEFINE_XARRAY_FLAGS β€” Define an XArray with custom flags. 🫢

✨ SYNOPSIS ✨

DEFINE_XARRAY_FLAGS (name , flags );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” A string that names your XArray.
  • flags β€” XA_FLAG values.

πŸ’… DESCRIPTION πŸ’…

okay so this macro is intended for file scope definitions of XArrays. it declares and initialises an empty XArray with the chosen name and flags.

it's equivalent to calling xa_init_flags on the array, but it does the initialisation at compiletime instead of runtime. that's the whole slay ✨

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file is ./include/linux/xarray.h β€” go peek, bestie πŸ‘€. and the whole reference squad is:


that's the tea β˜• for DEFINE_XARRAY_FLAGS(9) β€” source: ./include/linux, date: October 2026. bye bestie, go define something cute πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from