ENUM MHI_CALLBACK(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ enum mhi_callback(9) ✨

okay so bestie, this is a page from the Kernel API Manual and it's literally all about enum mhi_callback β€” the callback enum. that's the whole vibe. MHI events come in, and this enum is the little name tag each one wears πŸ’…


🌸 NAME 🌸

enum mhi_callback β€” MHI callback. that's it, that's the name, and honestly? iconic.


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the full enum, every single constant, exactly as it lives in the header:

enum mhi_callback {
    MHI_CB_IDLE ,
    MHI_CB_PENDING_DATA ,
    MHI_CB_LPM_ENTER ,
    MHI_CB_LPM_EXIT ,
    MHI_CB_EE_RDDM ,
    MHI_CB_EE_MISSION_MODE ,
    MHI_CB_SYS_ERROR ,
    MHI_CB_FATAL_ERROR ,
    MHI_CB_BW_REQ

};

πŸŽ€ Constants πŸŽ€

nine constants, no skips, let's go:

  • MHI_CB_IDLE β€” MHI entered idle state. it's giving "nothing to do rn, chilling" ✨
  • MHI_CB_PENDING_DATA β€” new data available for the client to process. bestie there is mail in the inbox, go look πŸ“¬
  • MHI_CB_LPM_ENTER β€” the MHI host entered low power mode. nap time, honestly deserved 😴
  • MHI_CB_LPM_EXIT β€” the MHI host is about to exit low power mode. wakey wakey, nap's over πŸ”₯
  • MHI_CB_EE_RDDM β€” the MHI device entered the RDDM exec env. very specific, very real.
  • MHI_CB_EE_MISSION_MODE β€” the MHI device entered Mission Mode exec env. main character energy fr fr πŸ‘‘
  • MHI_CB_SYS_ERROR β€” the MHI device entered an error state, and lowkey it may recover. not a funeral, just a scare πŸ’€
  • MHI_CB_FATAL_ERROR β€” the MHI device entered a fatal error state. okay this one's bad, no recovery mentioned, tread carefully πŸ™ˆ
  • MHI_CB_BW_REQ β€” received a bandwidth switch request from the device. it wants more (or less) bandwidth, and it's asking nicely 🌈
ngl, the difference between MHI_CB_SYS_ERROR and MHI_CB_FATAL_ERROR is the whole plot. one says "may recover", the other says nothing nice. respect the distinction, it matters 😭

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./include/linux/mhi.h β€” that's the source of truth, bestie, go read it 🫢

and then the whole friend group:


and that's the whole page, bestie πŸ§šπŸ’– this cutie lives under ./include/linux, dated October 2026, and came to you straight from the Kernel API Manual. mwah, go read your headers πŸ’…πŸŽ€

πŸ“¦ where this page comes from