page_ext_iter_next(9)
π 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 π
- Kernel file
./include/linux/page_ext.h struct page_ext_operations(9)page_ext_iter_begin(9)page_ext_iter_get(9)for_each_page_ext(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms