hlists_swap_heads_rcu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

hlists_swap_heads_rcu β€” swap the lists the hlist heads point to.

okay bestie, hiii πŸ‘‹ you're reading the Kernel API Manual page for hlists_swap_heads_rcu(9) β€” yes, the title/manual-name situation is folded right here, cute and compact, no giant duplicated header line needed πŸ’–


✨ SYNOPSIS ✨

the signature, exactly as it lands:

void hlists_swap_heads_rcu (struct hlist_head *left , struct hlist_head *right );

πŸŽ€ ARGUMENTS πŸŽ€

  • left β€” the hlist head on the left. left-side head, bestie, that's the vibe 🫢
  • right β€” the hlist head on the right. right-side head, no cap πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the swap glow-up this function is serving β€” the before/after is literally this:

The lists start out as [left  ][node1 ... ] and [right ][node2 ... ]
The lists end up as    [left  ][node2 ... ] [right ][node1 ... ]

so yeah, the lists trade places under those heads, and that's the whole iconic move πŸ’…βœ¨


πŸ‘€ SEE ALSO πŸ‘€

go peek at the kernel file ./include/linux/rculist.h, plus this entire iconic lineup β€” all the references, zero skips:


xoxo, your kernel bestie πŸ’– source/version says ./include/linux, date says October 2026, and the page is hlists_swap_heads_rcu(9). slay and goodbye 🫢

πŸ“¦ where this page comes from