list_prev_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ list_prev_entry(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the list_prev_entry glow-up. this is a <pink>Kernel API Manual</pink> page and honestly it's a little icon: one macro, two arguments, zero drama. she does exactly one thing and she does it cute. πŸŽ€


🌸 NAME 🌸

list_prev_entry β€” get the prev element in list

like, the previous one. the one behind you in line. main character energy but make it backwards. πŸ’…


✨ SYNOPSIS ✨

list_prev_entry (pos , member );

yes that spacing is real, don't come for her, she's been through a lot. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pos β€” the type * to cursor. it's your lil pointer bestie, the one you're using as the cursor, and it's typed as a * to whatever your struct is. πŸ‘‘
  • member β€” the name of the list_head within the struct. literally just the field name, the little embedded list node living inside your bigger struct. she's the reason any of this works. πŸ’–

🌈 SEE ALSO 🌈

the whole friend group, no gatekeeping, iykyk:

and if you actually want to read the source (bestie, go off) it lives in the kernel file ./tools/include/linux/list.h πŸ“‚βœ¨


ngl the member arg is the chaos goblin of this whole thing β€” it's a name, not a value, so get the spelling right or the compiler will simply end you. no cap. πŸ’€

mwah, that's the whole page. sending you off from ./tools/include/linux, dated October 2026, still serving list_prev_entry(9) realness. slay, bye! πŸ’–πŸ¦‹πŸŒΈπŸŽ€πŸ‘‘πŸ«Ά

πŸ“¦ where this page comes from