STRUCT MHI_DEVICE_ID(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’œ struct mhi_device_id(9)

okay so bestie, welcome to the Kernel API Manual β€” today's main character is struct mhi_device_id, and it's literally the little ID card that says which MHI device this is πŸͺͺ✨


🌸 NAME

struct mhi_device_id β€” MHI device identification πŸŽ€

✨ SYNOPSIS

struct mhi_device_id {
    const char chan[MHI_NAME_SIZE];
    kernel_ulong_t driver_data;
 };

bestie look at it. two members. that's it. she's compact, she's efficient, she ate πŸ’…

πŸ¦‹ Members

  • chan β€” the MHI channel name 🌈 (it's a const char array sized MHI_NAME_SIZE, no cap)
  • driver_data β€” the driver data, periodt πŸ’« (type is kernel_ulong_t, keep it exact fr fr)

πŸ‘‘ SEE ALSO

  • Kernel file ./include/linux/device-id/mhi.h β€” go read it, iykyk πŸ“–πŸ«Ά

lowkey a reminder: chan is a fixed-size array of MHI_NAME_SIZE chars, so don't go thinking it's a pointer, bestie 😭 that's a whole different vibe check

and that's the whole page, no notes πŸ’– this was rendered straight from the source at ./include/linux/device-id, dated October 2026 β€” slay, go forth and identify your devices πŸ§šβ€β™€οΈβ­πŸŽ€

πŸ“¦ where this page comes from