is_dock_device(9)
π
is_dock_device(9) π
okay bestie, welcome to the Kernel API Manual β we're doing a vibe check on docks today, and yes, it's giving very niche-kernel-energy. π
β¨ NAME β¨
is_dock_device β see if a device is on a dock station π¦
πΈ SYNOPSIS πΈ
int is_dock_device (struct acpi_device *adev );
π ARGUMENTS π
adevβ the ACPI device object to check, aka the little guy we're investigating π
π§ DESCRIPTION π§
So here's the tea: if this device is either the dock station itself, or it's a device dependent on the dock station, then bestieβ¦ it is a dock device. That's the whole check. No cap. π
π SEE ALSO π
The kernel file in question is ./drivers/acpi/dock.c, and it's linked up with all these iconic friends:
add_dock_dependent_device(9)find_dock_dependent_device(9)dock_present(9)hot_remove_dock_devices(9)hotplug_dock_devices(9)handle_dock(9)dock_in_progress(9)handle_eject_request(9)dock_notify(9)acpi_dock_add(9)
β¨ cute sign-off β¨ this page is brought to you by the ./drivers/acpi source/version vibe, dated October 2026. stay docked, stay slay. π«Άπ
π¦ 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