xas_next_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… xas_next_entry β€” Kernel API Manual realness

okay so welcome to xas_next_entry(9), straight out of the Kernel API Manual, and bestie… it's a tiny little inline function that just moves the iterator forward. That's it. That's the whole vibe. ✨


🌸 NAME 🌸

xas_next_entry β€” advance that iterator to the next present entry. slay.


πŸŽ€ SYNOPSIS πŸŽ€

void * xas_next_entry (struct xa_state *xas , unsigned long max );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • xas β€” the XArray operation state. the main character of this whole situation, lowkey.
  • max β€” the highest index it's allowed to return. like, the ceiling. respectfully.

πŸ’– DESCRIPTION πŸ’–

so xas_next_entry is an inline function whose whole personality is optimising xarray traversal for speed. it's giving "I'm the fast path" energy fr fr.

it is equivalent to calling xas_find, and β€” important β€” it will call xas_find for all the hard cases. so like, it handles the easy stuff itself and outsources the messy drama. iconic delegation tbh.


✨ RETURN ✨

the next present entry after the one currently referred to by xas. that's the tea. 🫢


πŸ‘‘ SEE ALSO πŸ‘‘

okay so the extended xarray family showed up in full force and honestly? obsessed. Kernel file ./include/linux/xarray.h is the home base, and then we've got:

like I said. everyone came. πŸ”₯


ngl the whole page is one function and six sections, but she ate and left no crumbs πŸ’…

⭐ that's the whole page bestie β€” sourced from ./include/linux, dated October 2026, and we're out. mwah. πŸ“πŸ§šπŸ’œ

πŸ“¦ where this page comes from