sym_get_choice_menu(9)
π sym_get_choice_menu(9)
okay so bestie, welcome to the Kernel API Manual β¨ this one's a little function from the kernel's config machinery and honestly? it's giving "small but essential." let's get into it π
β¨ NAME β¨
sym_get_choice_menu β get the parent choice menu if present π«Ά
like, it goes and fetches the parent choice menu for you, but only if present. no cap.
πΈ SYNOPSIS πΈ
struct menu * sym_get_choice_menu (const struct symbol *sym );
that's it. that's the whole vibe. one arg, returns a menu pointer. iconic π
π¦ ARGUMENTS π¦
symβ a symbol pointer β¨ literally just a pointer to astruct symbol. hand it over and let the function do its thing.
β RETURN β
a choice menu π but specifically: if this function is called against a choice member. so the tea is β you call it on a choice member, you get the choice menu back. that's the deal, fr fr.
π SEE ALSO π
- Kernel file
./scripts/kconfig/symbol.cπ (the source, the origin story, the main character) sym_get_prompt_menu(9)πchoice_set_value(9)β¨
lowkey reminder: this page is from the Kernel API Manual β section 9, kernel API, iykyk π§
anyway bestie that's the whole page, go forth and get those choice menus π
signing off from ./scripts/kconfig β dated October 2026, page sym_get_choice_menu(9) π mwah π
π¦ 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