STRUCT MHI_DEVICE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct mhi_device(9) πŸ’–

okay so welcome to the Kernel API Manual, bestie ✨ this is the whole entire page for struct mhi_device and like… it's the structure that represents an MHI device which binds to channels or is associated with controllers 🫢 that's the vibe, that's the whole thing, no notes.


πŸŽ€ NAME πŸŽ€

struct mhi_device β€” the struct that reps an MHI device, the one that binds to channels or is associated with controllers. she's versatile like that πŸ’…


✨ SYNOPSIS ✨

like, literally this shape, character for character, don't touch her:

struct mhi_device {
    const struct mhi_device_id *id;
    const char *name;
    struct mhi_controller *mhi_cntrl;
    struct mhi_chan *ul_chan;
    struct mhi_chan *dl_chan;
    struct device dev;
    enum mhi_device_type dev_type;
    int ul_chan_id;
    int dl_chan_id;
    u32 dev_wake;
 };

πŸ¦‹ Members πŸ¦‹

okay now the girlies themselves, one by one, in order, no skipping πŸ™ˆ

  • id β€” pointer to the MHI device ID struct πŸͺͺ
  • name β€” the name of the associated MHI device, her government name fr fr
  • mhi_cntrl β€” the controller this device belongs to πŸ‘‘
  • ul_chan β€” the UL channel for the device ⬆️
  • dl_chan β€” the DL channel for the device ⬇️
  • dev β€” the driver model device node for the MHI device 🌱
  • dev_type β€” the MHI device type 🏷️
  • ul_chan_id β€” the MHI channel id for UL transfer πŸ”’
  • dl_chan_id β€” the MHI channel id for DL transfer πŸ”’
  • dev_wake β€” the device wakeup counter ⏰ (she's counting, she's always counting)

🌈 SEE ALSO 🌈

okay this is the part where I introduce you to everyone, and I mean everyone, because the kernel file ./include/linux/mhi.h is a whole friend group and you're gonna meet all of them πŸ’œ


bestie I need you to know this was all sourced straight from ./include/linux β€” that's the whole directory it lives in, not a vibe I made up πŸ’€

and that's the page!! October 2026 is when this dropped btw, so you're getting the freshest possible lore πŸ¦‹ mwah, go read mhi.h, she's iconic and she's waiting for you πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from