mhi_driver_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:

driver registration besties (the sibling of this very page):

state & notify:

power up / power down (the whole situationship):

rddm & reset energy:

device refs:

transfer szn:

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