rhashtable_walk_peek(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 rhashtable_walk_peek(9) 🌸

okay so bestie, welcome to the Kernel API Manual ✨ this little cutie lives in the kernel and it's about peeking at your hash table without messing up where you're standing. very demure, very mindful πŸ’…


πŸ’– NAME πŸ’–

rhashtable_walk_peek β€” return the next object but don't advance the iterator 🫢 like, look but don't touch, yk?

✨ SYNOPSIS ✨

void * rhashtable_walk_peek (struct rhashtable_iter *iter );

πŸŽ€ ARGUMENTS πŸŽ€

  • iter β€” hash table iterator πŸ¦‹ (this is the little guy doing the walking, iykyk)

πŸ’« DESCRIPTION πŸ’«

So like, this function returns the next object, or NULL when you've hit the end of the table 🌈. That's it, that's the vibe.

It returns -EAGAIN if a resize event occurred ⚠️. And no cap, here's the tea: the iterator will rewind back to the beginning and you may continue to use it πŸ”₯. Not me getting sent back to the start and still being iconic πŸ’€πŸ‘‘

πŸ” SEE ALSO πŸ”

Kernel file ./lib/rhashtable.c β€” and the whole friend group fr fr:


and that's the whole page bestie πŸ§šπŸ’œ β€” this one came straight out of ./lib, dated October 2026, and it's literally called rhashtable_walk_peek(9) in case you forgot already 😭🫢 peek responsibly, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from