apple_gmux_detect(9)
β¨ NAME β¨
okay so bestie, welcome to the apple_gmux_detect(9) page from the Kernel API Manual π β this function is literally called apple_gmux_detect, and its whole job is to detect if gmux is built into the machine. no cap π
πΈ SYNOPSIS πΈ
bool apple_gmux_detect (struct pnp_dev *pnp_dev , enum apple_gmux_type
*type_ret );
π ARGUMENTS π
pnp_devβ the device to probe, orNULLto use the first matching device. super straightforward: specific device, or default first match β¨type_retβ returns (by reference) theapple_gmux_typeof the device. yep, it's giving βhere's the type, bestieβ π«Ά
π¦ DESCRIPTION π¦
So the whole vibe is: detect if a supported gmux device is present by actually probing it. literally going in and checking, not just assuming. This avoids the false positives returned on some models by apple_gmux_present. like, no more fake-out βmaybe it's thereβ energy π. this is the main-character move that keeps things accurate.
π₯ RETURN π₯
true if a supported gmux ACPI device is detected and the kernel was configured with CONFIG_APPLE_GMUX, false otherwise. that's the whole truth, periodt π
π SEE ALSO π
- Kernel file
./include/linux/apple-gmux.hβ go read it, bestie π apple_gmux_present(9)β the related page, iykyk π
β¨ cute little sign-off β¨ this page is from source/version ./include/linux, dated October 2026, and it's apple_gmux_detect(9) β byeee, stay probed ππ¦
π¦ 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