menu_get_parent_menu(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay bestie, welcome to the little corner of the kernel docs where we talk about menus πŸ‘‘ β€” yes, this is menu_get_parent_menu from the Kernel API Manual, and honestly? She's short, she's sweet, she does exactly one thing. Let's get into it πŸŽ€


✨ NAME ✨

menu_get_parent_menu β€” literally just returns the parent menu, or NULL. that's it. that's the whole gig πŸ’–


✨ SYNOPSIS ✨

struct menu * menu_get_parent_menu (struct menu *menu );

no cap, that's the entire signature. one argument, one pointer back out πŸ¦‹


✨ ARGUMENTS ✨

  • menu β€” pointer to the menu 🫢 that's the one you're asking about, the main character of this whole operation.

✨ RETURN ✨

the parent menu β€” or NULL if there is no parent 😭 so like, if you get NULL back, she's an orphan, she's root, she's got no one above her. vibe check accordingly πŸ’€


✨ SEE ALSO ✨

and all of these live in the kernel file ./scripts/kconfig/menu.c 🌸 go read the source, iykyk 🧚


fr fr this one is a tiny function, so don't overthink it β€” grab the parent, check for NULL, move on with your life πŸ’œ

mwah πŸ’‹ that's the page! this cutie came out of ./scripts/kconfig and she's dated October 2026 β€” see you in the next manpage, bestie 🌈⭐

πŸ“¦ where this page comes from