apple_gmux_detect(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, or NULL to use the first matching device. super straightforward: specific device, or default first match ✨
  • type_ret β€” returns (by reference) the apple_gmux_type of 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