list_is_head(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… list_is_head(9) πŸ’…

ok so we're in the Kernel API Manual bestie, and today's main character is list_is_head β€” a tiny little icon that answers exactly one question: is @list literally the head of @head's list? that's it. that's the whole vibe. πŸŽ€


✨ NAME ✨

list_is_head β€” tests whether @list is the list @head 🫢


🌸 SYNOPSIS 🌸

int list_is_head (const struct list_head *list , const struct list_head
*head );

like yes she's just one function call, no cap. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • list β€” the entry to test πŸ‘€ like the one you're side-eyeing
  • head β€” the head of the list πŸ‘‘

so you hand her the entry and the head and she's like "hmm, is this THE head?" and gets back at you with an int. periodt. πŸ”₯


🌈 SEE ALSO 🌈

all her besties live in the Kernel file ./scripts/include/list.h β€” go say hi:


and that's the whole page, bestie β€” short and slay, just how we like her. πŸ’–

ok final lil sign-off because i'm obsessed with sourcing my info: this one comes from ./scripts/include and it's dated October 2026. manifesting that energy for u. πŸ§šβ€β™€οΈβœ¨πŸŒΈ
πŸ“¦ where this page comes from