mhi_set_mhi_state(9)
π mhi_set_mhi_state β like, the whole Kernel API Manual moment, but make it make sense β¨
okay bestie, gather round, because we're doing a kernel API manual page and honestly? it's a little one but she's iconic. this is mhi_set_mhi_state from the Kernel API Manual, and no, you don't have to pretend you already knew that. π
πΈ NAME πΈ
mhi_set_mhi_state β Set MHI device state, that's literally the whole job description. no cap, that's it, that's the function. π
β SYNOPSIS β
here's the glow-up, exactly as written, do not come for me about the spacing:
void mhi_set_mhi_state (struct mhi_controller *mhi_cntrl , enum
mhi_state state );
so she returns void and she takes two things. that's the whole vibe check. π¦
π«Ά ARGUMENTS π«Ά
mhi_cntrlβ the MHI controller, aka the main character of this whole situation πstateβ the State to set, which is genuinely what it says on the tin, we love a straightforward queen π
ngl bestie, this page is short and sweet β no hidden options, no secret flags, no environment variables lurking in the shadows. what you see is what you get, fr fr. π
π SEE ALSO π
okay this part is a moment. the kernel file is ./include/linux/mhi.h and there are so many friends in here it's giving family reunion π§β¨. all of them below, exactly, no edits, i would never π:
enum mhi_callback(9)enum mhi_flags(9)enum mhi_device_type(9)enum mhi_ch_type(9)struct mhi_buf(9)struct image_info(9)struct mhi_link_info(9)enum mhi_ee_type(9)enum mhi_state(9)enum mhi_ch_ee_mask(9)enum mhi_er_data_type(9)enum mhi_db_brst_mode(9)struct mhi_channel_config(9)struct mhi_event_config(9)struct mhi_controller_config(9)struct mhi_controller(9)struct mhi_device(9)struct mhi_result(9)struct mhi_driver(9)mhi_alloc_controller(9)mhi_free_controller(9)mhi_register_controller(9)mhi_unregister_controller(9)__mhi_driver_register(9)mhi_driver_unregister(9)mhi_notify(9)mhi_get_free_desc_count(9)mhi_prepare_for_power_up(9)mhi_async_power_up(9)mhi_sync_power_up(9)mhi_power_down(9)mhi_power_down_keep_dev(9)mhi_unprepare_after_power_down(9)mhi_pm_suspend(9)mhi_pm_resume(9)mhi_pm_resume_force(9)mhi_download_rddm_image(9)mhi_force_rddm_mode(9)mhi_get_exec_env(9)mhi_get_mhi_state(9)mhi_soc_reset(9)mhi_device_get_sync(9)mhi_device_put(9)mhi_prepare_for_transfer(9)mhi_unprepare_from_transfer(9)mhi_queue_buf(9)mhi_queue_skb(9)mhi_queue_is_full(9)mhi_get_channel_doorbell_offset(9)
like, that's a lot of reading, but every single one of them is here because we don't skip the "boring" parts in this house π. iykyk.
and that's the page, bestie!! π this little beauty lives under ./include/linux and the date on her is October 2026 β so yeah, she's serving future-kernel energy and she ate. periodt. ππ₯π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms