ubi_get_volume_info(9)
π NAME
ubi_get_volume_info β bestie, this is the one that pulls the deets on a UBI volume for you β¨
It's giving "tell me everything about this volume" energy, and honestly? Iconic.
So quick vibe check: this is a Kernel API Manual situation (section 9, kernel-land, no cap π§), and what it does is get information about a UBI volume. That's it, that's the whole personality.
πΈ SYNOPSIS
void ubi_get_volume_info (struct ubi_volume_desc *desc , struct ubi_volume_info *vi );
Notice it returns void, bestie β it's not gonna hand you a status code, it just does the thing π. The info lands in the struct you pass in.
π ARGUMENTS
descβ your volume descriptor. Like, this is the handle that says "yes, this exact volume, her, the one I want the tea on" πviβ the info gets stored here. You hand it the struct, it fills it in. That's the whole deal. π«Ά
ngl, vi literally stands for "volume info" and if you remember that you're already winning. Lowkey the most sensible naming in the kernel.
π SEE ALSO
Linking the whole friend group, because bestie stays connected π:
- Kernel file
./drivers/mtd/ubi/kapi.c ubi_do_get_device_info(9)ubi_get_device_info(9)ubi_do_get_volume_info(9)ubi_open_volume(9)ubi_open_volume_nm(9)ubi_get_num_by_path(9)ubi_open_volume_path(9)ubi_close_volume(9)leb_read_sanity_check(9)ubi_leb_read(9)ubi_leb_read_sg(9)ubi_leb_write(9)ubi_leb_erase(9)ubi_leb_unmap(9)ubi_leb_map(9)ubi_is_mapped(9)ubi_sync(9)ubi_register_volume_notifier(9)ubi_unregister_volume_notifier(9)
and that's the whole page, periodt π¦
Shoutout to the source: this one lives in ./drivers/mtd/ubi, dated October 2026 β the manual itself is ubi_get_volume_info(9) from the Kernel API Manual, and honestly? She ate. ππ
π¦ 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