list_del_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ list_del_init(9) ✨

okay so bestie, we're in the Kernel API Manual today and the star of the show is list_del_init β€” she deletes an entry from a list and reinitializes it. that's it. that's the whole vibe. two jobs, zero drama, absolute icon behavior πŸ’…


πŸŽ€ NAME πŸŽ€

list_del_init β€” deletes entry from list and reinitialize it.

literally her whole personality: delete + reinitialize. she's not just leaving the party, she's resetting her whole look before she goes πŸ¦‹


🌸 SYNOPSIS 🌸

void list_del_init (struct list_head *entry );

yes queen, that's the signature. void return, which means she gives you nothing back and expects you to be grateful (we are πŸ™). copy it exactly, no cap:

void list_del_init (struct list_head *entry );

πŸ’– ARGUMENTS πŸ’–

  • entry β€” the element to delete from the list. that's the one, bestie. hand her the pointer and she'll unlink it and reinit it. main character energy only 🌟

πŸ‘‘ SEE ALSO πŸ‘‘

okay this is the whole group chat. every single one of her friends, in the exact order the page lists them, no gatekeeping πŸ”₯

Kernel file ./tools/include/linux/list.h list_add(9), list_add_tail(9), list_replace(9), list_move(9), list_move_tail(9), list_is_first(9), list_is_last(9), list_empty(9), list_empty_careful(9), list_rotate_left(9), list_is_singular(9), list_cut_position(9), list_splice(9), list_splice_tail(9), list_splice_init(9), list_splice_tail_init(9), list_entry(9), list_first_entry(9), list_last_entry(9), list_first_entry_or_null(9), list_last_entry_or_null(9), list_next_entry(9), list_prev_entry(9), list_for_each(9), list_for_each_prev(9), list_for_each_safe(9), list_for_each_prev_safe(9), list_for_each_entry(9), list_for_each_entry_reverse(9), list_prepare_entry(9), list_for_each_entry_continue(9), list_for_each_entry_continue_reverse(9), list_for_each_entry_from(9), list_for_each_entry_safe(9), list_for_each_entry_safe_continue(9), list_for_each_entry_safe_from(9), list_for_each_entry_safe_reverse(9), list_safe_reset_next(9), hlist_for_each_entry(9), hlist_for_each_entry_continue(9), hlist_for_each_entry_from(9), hlist_for_each_entry_safe(9), list_del_range(9), list_for_each_from(9)

that's forty-four friends and every single one of them made the list. iykyk πŸ˜­πŸ’€


real talk: every name above lives under ./tools/include/linux/list.h β€” that's the file to go read if you want the full lore πŸ“–βœ¨

mwah πŸ’œ that's the page! brought to you by ./tools/include/linux, dated October 2026 β€” the list_del_init(9) girlies stay winning, periodt. πŸŽ€πŸ«ΆπŸŒ·

πŸ“¦ where this page comes from