hlist_del(9)
π NAME π
okay so welcome to the hlist_del(9) manual page, bestie. The whole vibe is: hlist_del β delete the specified hlist_node from its list. That's it, that's the main character energy. π
β¨ SYNOPSIS β¨
void hlist_del (struct hlist_node *n );
π ARGUMENTS π
nβ Node to delete. The one getting removed from the list, no cap. π«Ά
π¦ DESCRIPTION π¦
So hlist_del deletes n from its list β slay, iconic, done. But the way that this has a little catch? Read me: this function leaves the node in hashed state. It does not magically unhash it. π
If you actually want to unhash n, use hlist_del_init or similar instead. That's the whole note. hlist_del is giving βdelete from list,β not βunhash the node.β Periodt.
π¨ important caveat, fr fr:hlist_delleaves the node in hashed state. Usehlist_del_initor similar instead to unhashn.
π SEE ALSO π
The kernel file is ./scripts/include/list.h β that's the spot. Also, the extended fam:
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_unhashed(9)hlist_del_init(9)hlist_add_head(9)hlist_for_each_entry(9)hlist_for_each_entry_safe(9)
mwah π this page came from the ./scripts/include source/version, dated October 2026, and the manual page is hlist_del(9). byeee π«Άπ
π¦ 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