llist_entry(9)
πΈ NAME πΈ
llist_entry β get the struct of this entry, periodt π
hiii bestie!! welcome to the llist_entry(9) page from the Kernel API Manual β¨ this one is short and sweet, and it's literally about getting the struct that this entry is embedded in. slay.
β¨ SYNOPSIS β¨
okay so the signature is giving exactly this, no edits:
llist_entry (ptr , type , member );
π ARGUMENTS π
ptrβ thestruct llist_nodepointer. yes bestie, that pointer πtypeβ the type of the struct this is embedded in. the whole struct vibe π¦memberβ the name of thellist_nodewithin the struct. the specific member, iykyk π―
π₯ SEE ALSO π₯
the kernel file is ./include/linux/llist.h β and here are all the besties it points you to:
init_llist_head(9)init_llist_node(9)llist_on_list(9)member_address_is_nonnull(9)llist_for_each(9)llist_for_each_safe(9)llist_for_each_entry(9)llist_for_each_entry_safe(9)llist_empty(9)llist_add_batch(9)llist_add(9)llist_del_all(9)llist_del_first_init(9)
mwah π this lil page lives in ./include/linux, dated October 2026, and it's the llist_entry(9) manual page. bye bestie, go get that struct π«Άβ¨
π¦ 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