hlist_nulls...hed_lockless(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– hlist_nulls...hed_lockless(9) πŸ’–

okay so we're in the Kernel API Manual, bestie, and this one is all about checking a node without taking a lock. Very main character energy, very β€œtrust me, I checked” ✨


🌸 NAME 🌸

hlist_nulls_unhashed_lockless β€” has this node been removed and reinitialized? That's the whole question, fr fr πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int hlist_nulls_unhashed_lockless (const struct hlist_nulls_node *h );

πŸ’… ARGUMENTS πŸ’…

  • h β€” the node you're checking, bestie. That's it. That's the argument 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Quick PSA, no cap: not all removal functions leave a node in the unhashed state. Like, some do, some don't, and you gotta know which is which 😭

For example, hlist_del_init_rcu leaves the node in the unhashed state, but hlist_nulls_del does not. Not the same vibe at all πŸ’€

Unlike hlist_nulls_unhashed, this function may be used locklessly. So if you were stressing about locks, breathe β€” this one's built for that lockless lifestyle 🌈


✨ SEE ALSO ✨


xoxo, this page is sourced from ./include/linux, dated October 2026, and the footer energy is still hlist_nulls...hed_lockless(9) πŸ’–βœ¨

πŸ“¦ where this page comes from