iosf_mbi_reg...ess_notifier(9)
π« iosf_mbi_register_pmic_bus_access_notifier π«
okay so bestie, welcome to the Kernel API Manual β yes we're in the kernel trenches today and honestly? iconic. this one's about registering a PMIC bus notifier and it's giving very much "let me know before things get busy" energy π
β¨ NAME β¨
iosf_mbi_register_pmic_bus_access_notifier β Register PMIC bus notifier π¦
πΈ SYNOPSIS πΈ
int iosf_mbi_register_pmic_bus_access_notifier (struct notifier_block
*nb );
π ARGUMENTS π
nbβ thenotifier_blockyou wanna register, literally just hand it over and it's in π
π₯ DESCRIPTION π₯
so here's the vibe: this function is for drivers that might need to grab P-Unit managed resources from interrupt context β which is exactly the situation where iosf_mbi_punit_acquire simply cannot be used π like, not an option, sorry bestie.
what this function does is let a driver register a notifier so it gets pinged β and important detail, in a process context β before other drivers start accessing the PMIC bus. yes, before. we're being proactive here π
and that's the whole point: it lets your driver acquire any resources it may need during the window where the other driver is accessing the PMIC, beforehand. get your stuff sorted first, then let the other driver do their thing. main character planning energy, fr fr β¨
π«Ά SEE ALSO π«Ά
kernel file ./arch/x86/include/asm/iosf_mbi.h, plus the whole friend group:
iosf_mbi_read(9)iosf_mbi_write(9)iosf_mbi_modify(9)iosf_mbi_punit_acquire(9)iosf_mbi_punit_release(9)iosf_mbi_block_punit_i2c_access(9)iosf_mbi_unregister_pmic_bus_access_notifier_unlocked(9)iosf_mbi_assert_punit_acquired(9)
ngl, if you're touching the PMIC bus from interrupt context, read the whole list above before you ship anything. the resources want to be acquired before the window opens, not during. no cap π
and that's the page bestie!! π source: ./arch/x86/include/asm, dated October 2026, living rent-free in the Kernel API Manual as iosf_mbi_reg...ess_notifier(9) β mwah, go slay your driver ππ
π¦ 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