STRUCT DEVICE_PHYSICAL_LOCATION(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🫢 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 the dock and lid ones are bools 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:

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 says struct devi...cal_location(9) on both sides and Kernel API Manual in the middle, and the footer tucks the source file ./include/linux on the left with the date October 2026 in 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