STRUCT MHI_CHANNEL_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

struct mhi_channel_config β€” the channel configuration structure for a controller, bestie πŸ’… (manual page struct mhi_channel_config(9), from the Kernel API Manual, no cap)


✨ SYNOPSIS ✨

struct mhi_channel_config {
    char *name;
    u32 num;
    u32 num_elements;
    u32 local_elements;
    u32 event_ring;
    enum dma_data_direction dir;
    enum mhi_ch_type type;
    u32 ee_mask;
    u32 pollcfg;
    enum mhi_db_brst_mode doorbell;
    bool lpm_notify;
    bool offload_channel;
    bool doorbell_mode_switch;
    bool wake_capable;
 };

okay so just look at that struct. it's giving "one channel's whole personality in a single C struct" πŸ”₯ every field is a lil fact about one channel and her whole situation.


πŸŽ€ MEMBERS πŸŽ€

  • name β€” the name of this channel 🏷️ like her little nametag, iconic.
  • num β€” the number assigned to this channel πŸ”’ the ID she got handed.
  • num_elements β€” how many elements can be queued to this channel πŸ“š that's her queue capacity, periodt.
  • local_elements β€” the local ring length of the channel πŸ’« how long the local ring is.
  • event_ring β€” the event ring index that services this channel πŸŒ€ which event ring has her back.
  • dir β€” the direction that data may flow on this channel πŸ¦‹ which way the data's allowed to travel.
  • type β€” the channel type 🌸 what kind of channel she is.
  • ee_mask β€” the Execution Environment mask for this channel 🎭 the EE mask, yep.
  • pollcfg β€” the polling configuration for burst mode πŸ”₯ and listen: 0 is the default. For UL channels it's in milliseconds; for DL channels it's a multiple of 8 ring elements. two units, one field, iykyk.
  • doorbell β€” the doorbell mode πŸ”” which doorbell mode she's on.
  • lpm_notify β€” the channel master requires low power mode notifications 😴 so if this is set, the master needs those LPM notifications.
  • offload_channel β€” the client manages the channel completely 🫢 full offload, the client's got it, no hand-holding.
  • doorbell_mode_switch β€” the channel switches to doorbell mode on M0 transition πŸ”„ M0 transition = doorbell mode now.
  • wake_capable β€” the channel is capable of waking up the system ⏰ she can wake the whole system up, main character energy fr.

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./include/linux/mhi.h, plus literally the entire extended universe πŸ’œ β€” these are all (9) kernel API pages:


ngl bestie, that's the whole page β€” you read all of it, I'm so proud 😭🫢 go forth and configure channels.

sign-off time ✨ this one lives at ./include/linux, dated October 2026, and it's the struct mhi_channel_config(9) page β€” mwah, bye πŸ’‹πŸŽ€

πŸ“¦ where this page comes from