rhashtable_walk_next(9)
π rhashtable_walk_next(9)
okay so bestie, this one's straight out of the Kernel API Manual and it's literally the little goblin that hands you the next thing in your hash table walk π like, the whole vibe is "gimme the next object and also move the iterator forward while you're at it." no cap, that's the entire job description.
β¨ NAME β¨
rhashtable_walk_next β return the next object and advance the iterator π¦ yes she does both, she's an overachiever.
π SYNOPSIS π
void * rhashtable_walk_next (struct rhashtable_iter *iter );
π¦ ARGUMENTS π¦
iterβ the hash table iterator π« your little walk-buddy, your main character of this function.
πΈ DESCRIPTION πΈ
okay so first thing first, and I need you to hear me on this one:
π¨ you must call rhashtable_walk_stop when you are finished with the walk. like, you HAVE to. not optional. not a suggestion. do not leave her hanging. π
and then the actual returns:
- it returns the next object β slay, that's the good stuff π
- or it returns
NULLwhen the end of the table is reached β that's your little "we're done here, bestie" signal π
but wait, there's a plot twist π«’ β it also returns -EAGAIN if a resize event occurred. and before you spiral: the iterator will rewind back to the beginning, and you may continue to use it. so it's giving "plot reset, not cancellation." the walk is still on fr fr π
π«Ά SEE ALSO π«Ά
- Kernel file
./lib/rhashtable.cπ (the source, the mothership) rhashtable_shrink(9)rhashtable_next_key(9)rhashtable_walk_enter(9)rhashtable_walk_exit(9)rhashtable_walk_start_check(9)__rhashtable_walk_find_next(9)rhashtable_walk_peek(9)rhashtable_walk_stop(9)β the one you literally cannot forget, bestie π«΅rhashtable_free_and_destroy(9)
and that's the page!! π brought to you from ./lib, dated October 2026, and it's rhashtable_walk_next(9) β go walk that table, queen ππ
π¦ 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