llist_reverse_order(9)
β¨ llist_reverse_order(9) β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is llist_reverse_order β no cap, the name literally tells you what it does π
πΈ NAME πΈ
llist_reverse_order β reverse order of a llist chain
like... it flips the chain. that's the whole gig. iconic behavior honestly π¦
π SYNOPSIS π
struct llist_node * llist_reverse_order (struct llist_node *head );
that's your signature, copy it exactly, don't come for me π
π ARGUMENTS π
headβ first item of the list to be reversed. yes, the first one. the main character of the chain π
β DESCRIPTION β
Reverse the order of a chain of llist entries and return the new first entry.
so you hand it the head of your chain, it turns the whole thing around, and it gives you back the new first entry. that's it. that's the function. obsessed π«Ά
π tiny reminder: it returns the new first entry β do not lose it, or you're gonna have a bad time finding the front of your list again.
π SEE ALSO π
- Kernel file
./lib/llist.c llist_del_first(9)llist_del_first_this(9)
go read those next, iykyk πβ¨
so yeah, that's the whole page β short, sweet, and it ate fr fr π
signed off from ./lib β October 2026 β llist_reverse_order(9) ππ§ββοΈ
π¦ 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