menu_next(9)
β¨ menu_next(9) β¨
okay so bestie, we're in the kernel API manual and this page is menu_next(9) β yes it's a manpage, no it's not boring, stay with me π
πΈ NAME πΈ
menu_next β returns the next menu entry, and it does it with depth-first traversal (iconic algorithm behaviour, honestly) π¦
π SYNOPSIS π
struct menu * menu_next (struct menu *menu , struct menu *root );
π ARGUMENTS π
menuβ pointer to the current menu, like the one you're standing on right now πrootβ the root of the sub-tree you want to traverse. and here's the lil plot twist: if you passNULLfor this one, the traversal just keeps going until it reaches the end of the entire menu tree π
β RETURN β
the menu to visit next, or NULL when it reaches the end π«Ά
fr fr, NULL here means "that's it, we're done, no more menus" β not an error, just the end of the line π
π§ SEE ALSO π§
kernel file ./scripts/kconfig/menu.c, plus these besties:
and that's the whole page, no cap π this lil gem lives in ./scripts/kconfig and it's dated October 2026 β periodt, go traverse some menus πβ¨
π¦ 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