xa_tag_pointer(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xa_tag_pointer β€” Kernel API Manual ✨

okay so bestie, welcome to xa_tag_pointer(9) from the Kernel API Manual. this one's short and sweet and honestly kind of iconic? we're making a tagged-pointer XArray entry. that's it. that's the whole vibe. πŸŽ€


🌸 NAME 🌸

xa_tag_pointer β€” Create an XArray entry for a tagged pointer. literally its whole job, no cap.


✨ SYNOPSIS ✨

void * xa_tag_pointer (void *p , unsigned long tag );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • p β€” Plain pointer. just a regular pointer, living its plain little life, about to get a glow-up.
  • tag β€” Tag value (0, 1 or 3). yes those are the only three, don't come at me with a 2 πŸ™ˆ

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea πŸ”₯ β€” if you're using the XArray and you'd rather not store value entries, you're totally allowed to tag your pointers instead. main character energy, honestly.

Three tags are available: 0, 1 and 3. the way that 2 is just not invited to the party πŸ’€

these tags are distinct from the xa_mark_t β€” because they are not replicated up through the array, and they cannot be searched for. like, they're just not doing all that. periodt. 🫢


πŸ‘‘ CONTEXT πŸ‘‘

Any context. literally any. she's flexible like that. πŸ’…


⭐ RETURN ⭐

An XArray entry. that's the whole thing. slay. ✨


🌈 SEE ALSO 🌈

Kernel file ./include/linux/xarray.h

the full bestie roll call, and yes every single one of them made the list:


that's the page bestie, go tag some pointers responsibly πŸ’œ

./include/linux Β· October 2026 Β· xa_tag_pointer(9) β€” mwah, read u next time πŸ§šβ€β™€οΈπŸ“

πŸ“¦ where this page comes from