ENUM DEVICE_REMOVABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum device_removable(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” this one's the enum device_removable page, and it's literally the glow-up guide for figuring out whether a device can be yanked out or not πŸ’…

πŸ’– NAME πŸ’–

enum device_removable β€” Whether the device is removable. The criteria for a device to be classified as removable is determined by its subsystem or bus.

like, the enum itself doesn't decide anything, your subsystem or bus is the one doing the vibe check πŸ‘‘

🌸 SYNOPSIS 🌸

enum device_removable {
    DEVICE_REMOVABLE_NOT_SUPPORTED ,
    DEVICE_REMOVABLE_UNKNOWN ,
    DEVICE_FIXED ,
    DEVICE_REMOVABLE

};

πŸŽ€ Constants πŸŽ€

okay these are the four moods a device can be in, no cap:

  • DEVICE_REMOVABLE_NOT_SUPPORTED β€” This attribute is not supported for this device (default). like it's giving "we don't even do that here" πŸ™ˆ and yes, it's the default, so if nobody says otherwise, this is what you get.
  • DEVICE_REMOVABLE_UNKNOWN β€” Device location is Unknown. the device is being mysterious and mysterious is not it 😭
  • DEVICE_FIXED β€” Device is not removable by the user. it lives there now, it's a fixture, main character energy of a houseplant πŸͺ΄
  • DEVICE_REMOVABLE β€” Device is removable by the user. go ahead bestie, unplug it, slay ✨

πŸ¦‹ SEE ALSO πŸ¦‹

here's the whole friend group, all from the Kernel file ./include/linux/device.h 🫢:


and that's the whole page, bestie, you ate it up πŸ’œ this iconic little number lives at ./include/linux, dated October 2026, and yes β€” it's still enum device_removable(9) at the bottom too, because consistency is a flex πŸŽ€βœ¨

πŸ“¦ where this page comes from