dock_present(9)
β¨ NAME β¨
okay bestie, welcome to dock_present(9) from the Kernel API Manual β this is the page for dock_present, and its whole job is to see if the dock station is present. That's the mission, periodt. π
π« SYNOPSIS π«
the signature is giving int and a pointer moment, so here it is exactly:
int dock_present (struct dock_station *ds );
π ARGUMENTS π
dsβ the dock station, aka thestruct dock_station *you're checking on. that's the whole argument, no cap. π«Ά
π₯ DESCRIPTION π₯
It executes the _STA method. β οΈ And here's the note that matters: present does not imply that we are docked. Like, do not conflate βpresentβ with βdockedβ β the manpage is literally warning you, bestie. π
π SEE ALSO π
Kernel file ./drivers/acpi/dock.c is the source-side main character, and the whole friend group is:
add_dock_dependent_device(9)find_dock_dependent_device(9)is_dock_device(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)
okay bye bestie π«Ά β this whole page comes from the ./drivers/acpi source, dated October 2026, and it's giving dock_present(9) footer energy at the very end. πβ¨
π¦ 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