handle_eject_request(9)
π handle_eject_request(9) π
okay bestie, this page is straight out of the Kernel API Manual, and it's all about one little function that handles an undock request and checks for error conditions. lowkey iconic. π
π NAME π
handle_eject_request β handle an undock request checking for error conditions. yep, that's the whole assignment, no cap. β¨
β¨ SYNOPSIS β¨
int handle_eject_request (struct dock_station *ds , u32 event );
πΈ ARGUMENTS πΈ
dsβ The dock station to undock. π«Άeventβ The ACPI event number associated with the undock request. π₯
π¦ DESCRIPTION π¦
First, it checks to make sure the dock device is still present. Then it undocks and hotremoves all the devices that may need removing. That's the flow, bestie β presence check β‘οΈ undock β‘οΈ hotremove the maybe-needs-removing devices. β¨
π SEE ALSO π
The kernel file is ./drivers/acpi/dock.c, and these are the related besties you should go peek at:
add_dock_dependent_device(9)find_dock_dependent_device(9)is_dock_device(9)dock_present(9)hot_remove_dock_devices(9)hotplug_dock_devices(9)handle_dock(9)dock_in_progress(9)dock_notify(9)acpi_dock_add(9)
mwah π that's the page! source/version: ./drivers/acpi Β· date: October 2026. byeee π«Ά
π¦ 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