__xa_erase(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ __xa_erase(9) ✨

okay so bestie, this page is straight outta the Kernel API Manual, and it's all about erasing an entry from the XArray while you're locked. let's get into it πŸ’…

πŸŽ€ NAME πŸŽ€

__xa_erase β€” Erase this entry from the XArray while locked. πŸ’–

🌸 SYNOPSIS 🌸

void * __xa_erase (struct xarray *xa , unsigned long index );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • xa β€” XArray.
  • index β€” Index into array.

πŸ’« DESCRIPTION πŸ’«

After this function returns, loading from index will return NULL β€” like, literally no entry, just NULL energy πŸ™ˆ. If the index is part of a multi-index entry, all indices will be erased and none of the entries will be part of a multi-index entry. that's the whole behavior, periodt ✨

πŸ”’ CONTEXT πŸ”’

Any context. On entry, it expects xa_lock to be held β€” so hold that lock, bestie. that's the vibe check 🫢

🎁 RETURN 🎁

The entry which used to be at this index β€” that's what you get back πŸ’–

🌈 SEE ALSO 🌈


okay bestie, that's the whole page 🫢 source/version: ./lib; date: October 2026; page: __xa_erase(9). slay πŸ’…

πŸ“¦ where this page comes from