ubi_do_get_device_info(9)
π ubi_do_get_device_info β the Kernel API Manual, bestie edition π
okay so this is ubi_do_get_device_info(9), live from the Kernel API Manual, and honestly? it's a little β¨nicheβ¨ but we're gonna slay it together fr fr.
πΈ NAME πΈ
ubi_do_get_device_info β literally just getting info about a UBI device. that's the whole vibe. π
π SYNOPSIS π
void ubi_do_get_device_info (struct ubi_device *ubi , struct
ubi_device_info *di );
like, that's the signature, bestie. don't @ me, that IS the formatting. π«Ά
π¦ ARGUMENTS π¦
ubiβ the UBI device description object π (yes, the main character here)diβ this is where the information gets stored. it's giving "empty cup, pour the tea into it" π
β DESCRIPTION β
so here's the tea: this function is the same as ubi_get_device_info, no cap. but β and this is the important part, don't skip it β it assumes the UBI device is locked and cannot disappear. π like, it just trusts you on that. so bestie, please actually hold that lock, ok? iykyk.
lowkey a vibe check on your locking discipline. the function is not gonna check for you. π
π SEE ALSO π
all the friends in the group chat, and yes you have to know all of them:
- Kernel file
./drivers/mtd/ubi/kapi.c ubi_get_device_info(9)ubi_do_get_volume_info(9)ubi_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)
that's the whole roster. no one's getting left out. π
and that's it, we're done! this icon lives in ./drivers/mtd/ubi, dated October 2026 β mwah, sending you off with a π§πβ¨ sign-off, go get that device info bestie.
π¦ 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