hlist_unhashed(9)
π hlist_unhashed(9) β a Kernel API Manual moment
okay so bestie, welcome to the glow-up of hlist_unhashed, coming at you straight from the kernel API manual. pull up a chair, grab a matcha π΅, we're doing pointer lore today.
β¨ NAME β¨
hlist_unhashed β literally answering the question "has this node been removed from the list and reinitialized?" π¦
πΈ SYNOPSIS πΈ
int hlist_unhashed (const struct hlist_node *h );
π ARGUMENTS π
hβ the node we're checking, bestie. that's it. that's the whole argument. she's lowkey simple like that π
π₯ DESCRIPTION π₯
so here's the tea β β and this is the part where you gotta pay attention because it's giving "plot twist":
not all removal functions leave a node in the unhashed state. periodt. that's not a vibe check that goes one way for everybody.
like, for example:
hlist_nulls_del_init_rcudoes leave the node in unhashed state π slay for her- but
hlist_nulls_deldoes not π nope, not her, different behavior entirely
so yeah, don't go assuming every _del variant is out here doing the same thing, because they are not. the way that these two functions live completely different lives π
π SEE ALSO π
okay this is the whole group chat right here, everyone showed up to the party π«Ά and yeah, they're all listed with their full (9) section energy:
- Kernel file
./scripts/include/list.h container_of(9)INIT_LIST_HEAD(9)list_add(9)list_add_tail(9)list_del(9)list_replace(9)list_replace_init(9)list_move(9)list_move_tail(9)list_is_first(9)list_is_last(9)list_is_head(9)list_empty(9)list_entry(9)list_first_entry(9)list_last_entry(9)list_next_entry(9)list_prev_entry(9)list_entry_is_head(9)list_for_each_entry(9)list_for_each_entry_reverse(9)list_for_each_entry_safe(9)hlist_del(9)hlist_del_init(9)hlist_add_head(9)hlist_for_each_entry(9)hlist_for_each_entry_safe(9)
and that's the whole page, bestie β¨ no cap, that was everything, not a single flag dropped π
fr fr go read the source before you ship it though β iykyk π
later, legend π¦ β this one's from ./scripts/include, dated October 2026, and yes she ate ππ
π¦ 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