hlist_nulls...hed_lockless(9)
π 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 β¨
- Kernel file
./include/linux/list_nulls.h get_nulls_value(9)hlist_nulls_unhashed(9)hlist_nulls_for_each_entry(9)hlist_nulls_for_each_entry_from(9)
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
- 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