DEFINE_XARRAY(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ DEFINE_XARRAY(9) ✨

okay bestie, welcome to the DEFINE_XARRAY(9) page from the Kernel API Manual β€” it's giving tiny β€œdefine an XArray” energy, and we're keeping every detail intact. No cap. πŸ«ΆπŸ’…

πŸ’– NAME πŸ’–

DEFINE_XARRAY β€” define an XArray. 🌸

πŸŽ€ SYNOPSIS πŸŽ€

DEFINE_XARRAY (name );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • name β€” a string that names your XArray. πŸ’–

🧚 DESCRIPTION 🧚

So the intended use here is file scope definitions of XArrays. It declares and initialises an empty XArray with the chosen name. Calling xa_init on the array is equivalent, except this does the initialisation at compiletime instead of runtime. Periodt. ✨

bestie reminder: β€œfile scope definitions” and β€œcompiletime instead of runtime” are the whole point here, okay? πŸ‘‘

🌈 SEE ALSO 🌈

Kernel file: ./include/linux/xarray.h


cute little sign-off: source ./include/linux, page/version DEFINE_XARRAY(9), dated October 2026 β€” slay, go define that XArray, bestie. πŸ’–βœ¨

πŸ“¦ where this page comes from