page_ext_iter_next(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… page_ext_iter_next(9) β€” like, the Kernel API Manual page you didn't know you needed

okay bestie, so this is page_ext_iter_next(9) from the Kernel API Manual, and honestly? it's giving "small but mighty" ✨ it's the little iterator helper that gets you the next page extension, and yes you're gonna stan her.


🌸 SYNOPSIS 🌸

struct page_ext * page_ext_iter_next (struct page_ext_iter *iter ,
unsigned long count );

that's the whole vibe. she takes an iterator and a count, she hands you back a struct page_ext *. no cap. 🫢


πŸŽ€ ARGUMENTS πŸŽ€

  • iter β€” the page extension iterator itself, your main character πŸ¦‹
  • count β€” the maximum number of page extensions to return. like, the absolute limit, bestie πŸ’…

✨ DESCRIPTION ✨

okay so listen: you must call this with the RCU read lock taken. not "should", not "maybe", not "if you feel like it" β€” must. πŸ”’ take the lock first, then come talk to her. this is a hard requirement and i'm not gonna sugarcoat it πŸ’€


πŸ”₯ RETURN πŸ”₯

returns NULL if no next page_ext exists. that's it. that's the whole return section. when there's nothing left, you get NULL and you can go touch grass 🌱


πŸ‘‘ SEE ALSO πŸ‘‘

iykyk β€” go read page_ext_iter_begin(9) first if you're new here, she's the one who starts the whole thing πŸ’–


and that's the page, bestie πŸ’œ sourced straight from ./include/linux, dated October 2026 β€” literally iconic, no notes πŸŽ€βœ¨πŸ’…

πŸ“¦ where this page comes from