list_private...try_circular(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– list_private...try_circular(9) β€” the kernel API manual, bestie edition πŸŽ€

okay so first things first, the manual name is literally list_private...try_circular(9) (yes that's the truncated lil name up top, the real star of the show is list_private_prev_entry_circular and we'll get to her in a sec). this is kernel API manual territory, so put your hair up and let's go ✨


🌸 NAME 🌸

list_private_prev_entry_circular β€” get the prev element in list πŸ’…

⭐ SYNOPSIS ⭐

list_private_prev_entry_circular (pos , head , member );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • pos β€” the *type ** to cursor. like, that's your cursor pointer, she's just vibing wherever you point her 🫢
  • head β€” the list head to take the element from. the actual list we're poking at πŸ‘‘
  • member β€” the name of the list_head within the struct. yep, the field name, spelled exactly like that πŸŽ€

✨ DESCRIPTION ✨

bestie here's the tea β˜•: it wraps around if pos is the first element β€” so it returns the last element instead. it's giving circular, it's giving "no dead ends in this list" πŸ”₯

πŸ’€ warning tho: the list is expected to be not empty. that's the vibe check you must pass before calling. no empty lists allowed, periodt.

🌈 SEE ALSO 🌈

the whole squad, fr fr β€” go check these out:


and that's the whole page, bestie, you ate that πŸ“ this iconic lil manual came from ./include/linux and it's dated October 2026, under the name list_private...try_circular(9) β€” mwah, slay, see you in the next one πŸ˜­πŸ’œ

πŸ“¦ where this page comes from