mhi_driver_unregister(9)
π mhi_driver_unregister β like, the Kernel API Manual page, bestie
okay so real talk, this one's a shortie but she's important. It lives in the Kernel API Manual, section 9, and it's literally the "bye bye driver" function. No cap.
π NAME π
mhi_driver_unregister β unregister a driver for mhi_devices
Yeah. That's it. That's the whole job. She takes your driver back out of the system, and honestly? iconic behaviour.
β¨ SYNOPSIS β¨
void mhi_driver_unregister (struct mhi_driver *mhi_drv );
notice how she returns void? like she doesn't owe you a status code, she just does the thing and dips. periodt.
π«Ά ARGUMENTS π«Ά
mhi_drvβ the driver associated with the device. this is your driver struct, your little guy, the one you registered earlier. hand her over and she gets unregistered. π
π SEE ALSO π
okay this list is long β like, unhinged long β but every single one of these is family, so we're listing them all. no skipping. ngl this is the whole MHI cinematic universe:
the kernel file itself:
./include/linux/mhi.h
enums:
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)
structs:
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 life cycle girlies:
mhi_alloc_controller(9)mhi_free_controller(9)mhi_register_controller(9)mhi_unregister_controller(9)
driver registration besties (the sibling of this very page):
state & notify:
mhi_set_mhi_state(9)mhi_notify(9)mhi_get_free_desc_count(9)mhi_get_exec_env(9)mhi_get_mhi_state(9)
power up / power down (the whole situationship):
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)
rddm & reset energy:
device refs:
transfer szn:
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 I said. the whole friend group. π
lowkey a reminder: this page is exactly what it says on the tin β no hidden options, no flags, no env vars, no exit statuses, no signals, no bugs section. just one function, one argument, and a lot of see-also links. don't go looking for drama where there isn't any. πΈ
and that's the page!! sourced from ./include/linux, dated October 2026, from the mhi_driver_unregister(9) manual page β mwah, go unregister something responsibly π
β¨π¦
π¦ 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