__rhashtable_walk_find_next(9)
β¨ __rhashtable_walk_find_next β¨
okay bestie, so we're deep in the Kernel API Manual today π«Ά this one's a (9) section page, and it's literally about finding the next element in a hash table while you're walking it. short page, big main character energy. let's go π
πΈ NAME πΈ
__rhashtable_walk_find_next β Find the next element in a table (or the first one in case of a new walk).
no cap, that's the whole vibe: next element, or the very first one if you're just starting the walk. π
π¦ SYNOPSIS π¦
void * __rhashtable_walk_find_next (struct rhashtable_iter *iter );
that's it. one function, one argument, and it hands you back a void *. slay β¨
π ARGUMENTS π
iterβ Hash table iterator. that's your iterator bestie, the thing that keeps track of where you are in the walk. it's astruct rhashtable_iter *, so you're passing a pointer to it, not a copy. periodt. π
π₯ DESCRIPTION π₯
So here's the tea β β this function returns the found object, or NULL when the end of the table is reached. that's the "we're done here, nothing left" signal π«Ά
and then it also returns -EAGAIN if a resize event occurred. yes, from a void * function, yes that's what the docs say, and yes i'm as obsessed with it as you are π that's the "the table changed shape under you, try again" situation. don't ignore it ngl.
π lowkey important:NULL= end of table.-EAGAIN= a resize happened. two completely different vibes, don't mix them up bestie.
π SEE ALSO π
- the kernel file
./lib/rhashtable.c rhashtable_shrink(9)rhashtable_next_key(9)rhashtable_walk_enter(9)rhashtable_walk_exit(9)rhashtable_walk_start_check(9)rhashtable_walk_next(9)rhashtable_walk_peek(9)rhashtable_walk_stop(9)rhashtable_free_and_destroy(9)
like, the whole rhashtable walk friend group fr fr π§π go read them too, iykyk.
and that's the page!! mwah π this one lives under ./lib, dated October 2026, and it's filed as __rhashtable_walk_find_next(9) β so if you need to find it again, you know exactly where to look π bye bestie, happy walking ππ
π¦ 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