ubi_notify_all(9)
πΈ ubi_notify_all(9) β the Kernel API Manual page, bestie edition πΈ
Okay so this is ubi_notify_all(9) β yes, that's the name AND it's from the Kernel API Manual, we're doing both up front, no gatekeeping here. Sit down, hydrate, let's get into it π
β¨ NAME β¨
ubi_notify_all β sends a notification to all volumes. That's it, that's the whole vibe. All of them. Every single one. π
β¨ SYNOPSIS β¨
int ubi_notify_all (struct ubi_device *ubi , int ntype , struct
notifier_block *nb );
Look at her. Returns an int, takes three things. Iconic, honestly. π
β¨ ARGUMENTS β¨
Here's your cast of characters, no cap:
ubiβ the UBI device description object. Like, the whole device's little profile card πͺͺntypeβ the notification type you're sending (UBI_VOLUME_ADDED, etc). etc is doing so much heavy lifting there and I respect it πnbβ the notifier to call. Yes, this one right here, this is the important one, keep your eye on it π
β¨ DESCRIPTION β¨
So what actually happens? This function walks all volumes of the UBI device ubi and sends the ntype notification for each volume. Like a little tour. A little notification tour of every volume. Cute, honestly π
Now here's the branching logic, and it matters, so listen up:
- If
nbisNULLβ then all registered notifiers are called π«Ά - Otherwise β only the
nbnotifier is called. Just the one. Exclusive. Main character energy β¨
And then β drumroll β it returns the number of sent notifications. A count. A little receipt of how many notifications went out π₯
β¨ SEE ALSO β¨
The whole friend group, fr fr, keep these close:
- Kernel file
./drivers/mtd/ubi/build.cstruct mtd_dev_param(9) ubi_volume_notify(9)ubi_enumerate_volumes(9)ubi_get_device(9)ubi_put_device(9)ubi_get_by_major(9)ubi_major2num(9)kill_volumes(9)uif_init(9)uif_close(9)ubi_free_volumes_from(9)ubi_free_all_volumes(9)ubi_free_internal_volumes(9)io_init(9)autoresize(9)ubi_attach_mtd_dev(9)ubi_detach_mtd_dev(9)open_mtd_by_chdev(9)open_mtd_device(9)bytes_str_to_int(9)ubi_mtd_param_parse(9)
Lowkey a whole reading list. Go click through them, iykyk π¦
And that's the page!! Signing off from ./drivers/mtd/ubi β that's where she lives β dated October 2026. Slay, bye, go notify some volumes ππ
π¦ 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