xas_set(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xas_set(9) β€” aka the Kernel API Manual's cutest little index-switcher πŸŽ€

okay so bestie, buckle up, because this is xas_set(9) from the Kernel API Manual, and honestly? it's giving "tiny function, big main character energy" ✨


🌸 NAME 🌸

xas_set β€” Set up XArray operation state for a different index. literally that's it, that's the whole job πŸ’–


⭐ SYNOPSIS ⭐

void xas_set (struct xa_state *xas , unsigned long index );

no cap, that's the whole signature. two arguments. in, out, slay. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • xas β€” the XArray operation state 🫢 like, this is the little state buddy you're moving around.
  • index β€” the new index into the XArray ✨ the fresh new spot you're pointing at.

πŸ”₯ DESCRIPTION πŸ”₯

Move the operation state to refer to a different index. that's the vibe β€” xas gets repositioned to wherever index says, periodt πŸ‘‘

be aware bestie: this will have the effect of starting a walk from the top 🧚 so it's not a sneaky little nudge to the next-door neighbor. if adjacent-index energy is what you want, see xas_next β€” that's the one that moves you to an adjacent index πŸ’«

lowkey important: xas_set = jump to a whole new index and restart the walk from the top. xas_next = slide over to the adjacent index. don't mix them up, iykyk πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

kernel file ./include/linux/xarray.h β€” and okay the friend group here is huge, so let's do a roll call 🌈

like i said. huge friend group. all iconic, all worth a read πŸ’œ


and that's the whole page bestie!! πŸ“ sourced straight from ./include/linux, dated October 2026 β€” mwah, go forth and set those indices πŸ’‹βœ¨

πŸ“¦ where this page comes from