list_private_entry_is_head(9)
π list_private_entry_is_head(9) π
okay so bestie, welcome to the Kernel API Manual β yes this is genuinely a page from it, and yes it's about the private list primitives, the cool mysterious ones. gather round π«Ά
β¨ NAME β¨
list_private_entry_is_head β the vibe check that tells you whether an entry is pointing at the head of the list π
like fr fr, that's it, that's the whole job. it looks at pos and goes "hmm, are you the head, or are you just some regular entry pretending?" π
πΈ SYNOPSIS πΈ
list_private_entry_is_head (pos , head , member );
yes the spacing is like that, don't come for me, that's literally how it's written π
π ARGUMENTS π
posβ thetype *to cursor. this is your lil pointer bestie, the one doing the pointing π like it's the cursor that's cursor-ing.headβ the head for your list. the main character of the whole list situation, no cap πmemberβ the name of thelist_headwithin the struct. iykyk β you gotta tell it which field inside your struct is the list node, because it can't read minds π§ β¨
π¦ SEE ALSO π¦
okay this part is a whole friend group, honestly iconic, every single one of them:
Kernel file ./include/linux/list_private.hβ Private List Primitives(9)list_private_entry(9)list_private_first_entry(9)list_private_last_entry(9)list_private_next_entry(9)list_private_next_entry_circular(9)list_private_prev_entry(9)list_private_prev_entry_circular(9)list_private_for_each_entry(9)list_private_for_each_entry_reverse(9)list_private_for_each_entry_continue(9)list_private_for_each_entry_continue_reverse(9)list_private_for_each_entry_from(9)list_private_for_each_entry_from_reverse(9)list_private_for_each_entry_safe(9)list_private_for_each_entry_safe_continue(9)list_private_for_each_entry_safe_from(9)list_private_for_each_entry_safe_reverse(9)list_private_safe_reset_next(9)
like. nineteen whole references. the way this family shows up for each other ππ go read them, they're all slay.
π«Ά reminder bestie: everything above lives in./include/linuxand this page is dated October 2026, and the whole thing is brought to you by that very samelist_private_entry_is_head(9)energy. stay hydrated, check your pointers, mwah πβ¨
that's the page!! go forth and check those heads π§ββοΈπ
π¦ 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