ubi_enumerate_volumes(9)
π ubi_enumerate_volumes(9) π
ok so you found a page from the Kernel API Manual β specifically ubi_enumerate_volumes(9), bestie. UBI stands for Unsorted Block Images and this lil function is about to go tell everybody about every volume it can find. sit down, grab a π, let's get into it.
β¨ NAME β¨
ubi_enumerate_volumes β sends an "add" notification for all existing volumes. that's it, that's the whole job. she's a notifier girlie π
πΈ SYNOPSIS πΈ
int ubi_enumerate_volumes (struct notifier_block *nb );
literally one parameter. one. we love a low-maintenance icon. π
π¦ ARGUMENTS π¦
nbβ the notifier to call. this is thestruct notifier_block *from the synopsis, so likeβ¦ the person you're texting the news to. π²
π DESCRIPTION π
okay so here's the vibe: this function walks all UBI devices and volumes and sends the UBI_VOLUME_ADDED notification for each volume. every single one. no skips, no "oops missed one," she's thorough like that. π
and the targeting logic? iconic:
- if
nbis NULL, then all registered notifiers are called β full group chat blast π’ - otherwise, only the
nbnotifier is called β a very private DM π
and she returns the number of sent notifications. so like, you get receipts. β¨
π₯ SEE ALSO π₯
the whole friend group, fr fr β this kernel file and these pages all hang out together:
- Kernel file
./drivers/mtd/ubi/build.c struct mtd_dev_param(9)ubi_volume_notify(9)ubi_notify_all(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)
and that's the whole page, bestie!! π«Ά this one lives out of ./drivers/mtd/ubi, dated October 2026 β like, future girlie energy honestly πβ¨. go forth, notify 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