STRUCT DEVICE_PHYSICAL_LOCATION(9)
π«Ά struct device_physical_location(9) π«Ά
okay so bestie, this page lives in the Kernel API Manual (yes, the page name shows up truncated as struct devi...cal_location(9) in the corner, that's just how it prints, don't stress π
) and it's literally just a lil struct that holds all the info about where a device physically plugs into your machine. like, physically physically. the actual spot on the housing. no cap π
β¨ NAME β¨
struct device_physical_location β Device data related to physical location of the device connection point. π
like it's giving "where does this thing actually live on the box", and that's the whole vibe.
πΈ SYNOPSIS πΈ
struct device_physical_location {
enum device_physical_location_panel panel;
enum device_physical_location_vertical_position vertical_position;
enum device_physical_location_horizontal_position
horizontal_position;
bool dock;
bool lid;
};
that horizontal_position line wrapping is exactly how it's written, i'm not touching it, it's iconic β¨
π¦ Members π¦
okay so here's the cast of characters, one by one:
panelβ Panel surface of the system's housing that the device connection point resides on. π§ like, which face of the chassis we talkin' about.vertical_positionβ Vertical position of the device connection point within the panel. β¬οΈβ¬οΈ where it sits up-and-down inside that panel.horizontal_positionβ Horizontal position of the device connection point within the panel. β¬ οΈβ‘οΈ and where it sits side-to-side, same panel.dockβ Set if the device connection point resides in a docking station or port replicator. π so basically: is this a dock thing, yes/no.lidβ Set if this device connection point resides on the lid of laptop system. π»β¨ like it's literally on the lid, slay.
ngl thedockandlidones arebools so they're just "set" or "not set" β no in-between, periodt π
π SEE ALSO π
lowkey this is the part where the page just goes absolutely feral and names basically the entire device subsystem, bestie. buckle up. π
Kernel file ./include/linux β and then, in the original order, fr fr:
struct subsys_interface(9)struct device_attribute(9)struct dev_ext_attribute(9)DEVICE_ATTR(9)DEVICE_ATTR_RW(9)DEVICE_ATTR_ADMIN_RW(9)DEVICE_ATTR_RW_NAMED(9)DEVICE_ATTR_RO(9)DEVICE_ATTR_ADMIN_RO(9)DEVICE_ATTR_RO_NAMED(9)DEVICE_ATTR_WO(9)DEVICE_ATTR_WO_NAMED(9)DEVICE_ULONG_ATTR(9)DEVICE_INT_ATTR(9)DEVICE_BOOL_ATTR(9)DEVICE_STRING_ATTR_RO(9)enum device_link_state(9)enum dl_dev_state(9)enum device_removable(9)struct dev_links_info(9)struct dev_msi_info(9)enum device_physical_location_panel(9)enum device_physical_location_vertical_position(9)enum device_physical_location_horizontal_position(9)enum struct_device_flags(9)struct device(9)struct device_link(9)device_set_driver_override(9)device_has_driver_override(9)device_match_driver_override(9)device_iommu_mapped(9)dev_name(9)dev_bus_name(9)device_find_child_by_name(9)device_find_any_child(9)device_lock_set_class(9)device_lock_reset_class(9)
okay that's the whole squad ππ especially clock the three device_physical_location_* enums up there β those are literally the types behind the fields in this very struct, so go read those next if you wanna know the actual allowed values, iykyk π
reminder bestie: the page header saysstruct devi...cal_location(9)on both sides andKernel API Manualin the middle, and the footer tucks the source file./include/linuxon the left with the dateOctober 2026in the middle β i'm folding all of that in right here so nothing gets lost π«Ά
and that's the whole page!! source lives at ./include/linux, dated October 2026, filed under struct devi...cal_location(9) in the Kernel API Manual β mwah, go touch grass (or, like, a docking station) ππβ¨
π¦ 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