ip_vs_rht_w...ets_safe_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ip_vs_rht_walk_buckets_safe_rcu ✨

okay bestie, so this one is a lil' function from the Kernel API Manual and honestly? it's giving "walk the buckets but make it RCU-safe" energy πŸ’… let's get into it.


🌸 NAME 🌸

ip_vs_rht_walk_buckets_safe_rcu β€” walk all the buckets while holding the RCU read lock 🫢


πŸŽ€ SYNOPSIS πŸŽ€

ip_vs_rht_walk_buckets_safe_rcu (table , head );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • table β€” it's a struct ip_vs_rht __rcu *table, yep the whole table, RCU-flavoured and everything ✨
  • head β€” bucket address, used as a cursor, and its type is struct hlist_bl_head *var β€” that's your lil' pointer to point at where you're at πŸ‘‘

πŸ’– DESCRIPTION πŸ’–

So like, you can totally use this while other people are out here adding and deleting entries β€” but moving is disabled. no cap, that's the deal πŸ™ˆ

Using cond_resched_rcu should be safe if the tables do not change. like, if. read that again bestie 😭

fr fr, the "tables don't change" part is doing a lot of heavy lifting in that sentence β€” don't sleep on it πŸ’€

🌈 SEE ALSO 🌈

like, that's the whole friend group right there, go say hi πŸ‘‹


and that's a wrap, bestie πŸŽ€ this lil' page lives in ./include/net, dated October 2026, and it's part of the Kernel API Manual β€” iconic, no notes πŸ’œ

πŸ“¦ where this page comes from