hlist_del_init(9)
π hlist_del_init β Kernel API Manual, section 9 π
okay bestie, so you've got this node chillin' in an hlist and you need it gone β but also β¨resetβ¨ for its next era. that's this one. no cap.
πΈ NAME πΈ
hlist_del_init β Delete the specified hlist_node from its list and initialize
β SYNOPSIS β
void hlist_del_init (struct hlist_node *n );
π¦ ARGUMENTS π¦
nβ Node to delete. that's the one getting yeeted, iykyk π
π DESCRIPTION π
so it does the delete and the init in one go, main character energy π«
heads up bestie: Note that this function leaves the node in unhashed state. π«Ά literally important, don't forget it.
π SEE ALSO π
Kernel file ./scripts/include/list.h and the whole friend group:
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(9)hlist_add_head(9)hlist_for_each_entry(9)hlist_for_each_entry_safe(9)
okay that's the whole page, mwah π β this icon lives in ./scripts/include, and the last vibe check was October 2026. slay, go delete responsibly π§ββοΈβ¨
π¦ 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