mhi_unprepar...r_power_down(9)
π mhi_unprepare_after_power_down β Kernel API Manual, section 9 β¨
okay so bestie, welcome to section 9 of the Kernel API Manual, the corner where the mhi_unprepare_after_power_down(9) girlies live π (yes the header truncates it to mhi_unprepar...r_power_down(9), no we don't know why, it's giving abbreviating-the-bestie energy π). Let's get into it.
πΈ NAME πΈ
mhi_unprepare_after_power_down β literally frees any allocated memory after power down π«Ά that's the whole vibe check, that's the job.
β¨ SYNOPSIS β¨
void mhi_unprepare_after_power_down (struct mhi_controller *mhi_cntrl );
she returns void, she takes one pointer, she's lowkey unbothered π
π¦ ARGUMENTS π¦
mhi_cntrlβ the MHI controller π that's it, that's the argument, that's the whole squad member.
π₯ SEE ALSO π₯
bestie the SEE ALSO list is long, and we are not skipping a single one of her friends, periodt. every name below appears exactly as the page says it, with that (9) tag on the end π
also she points you back at the kernel file ./include/linux/mhi.h, so go say hi π
π the enums (the alphabet mafia of this page)
enum mhi_callback(9),enum mhi_flags(9),enum mhi_device_type(9),enum mhi_ch_type(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)
π§ the structs (the main characters)
struct mhi_buf(9),struct image_info(9),struct mhi_link_info(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)
π controller lifecycle (the get-up-and-go girls)
mhi_alloc_controller(9),mhi_free_controller(9)mhi_register_controller(9),mhi_unregister_controller(9)
π driver registration (the paperwork squad)
β state + notify + desc counts
πΈ power up / power down (her direct coworkers π«Ά)
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_pm_suspend(9),mhi_pm_resume(9),mhi_pm_resume_force(9)
π rddm + exec env + soc reset
mhi_download_rddm_image(9),mhi_force_rddm_mode(9)mhi_get_exec_env(9),mhi_get_mhi_state(9),mhi_soc_reset(9)
π§ device get/put + transfer + queue (the data girlies)
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)
π okay so that's 49 cross-references, count them if you dare, she's thorough and we respect it. not one dropped, not one renamed, no cap.
and that's the page!! π¦ go forth and free your memory responsibly bestie π
sign-off time β¨ β this icon was living in ./include/linux and dated October 2026, mwah π π
π¦ 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