STRUCT UBI_RENAME_ENTRY(9)
π struct ubi_rename_entry(9) β the Kernel API Manual tea π«Ά
okay so bestie, welcome to the Kernel API Manual page for struct ubi_rename_entry(9), and honestly? it's giving "small struct, big responsibilities." slay. β¨
πΈ NAME πΈ
struct ubi_rename_entry β the data structure that describes a volume re-name. literally its whole job. no cap. π
β SYNOPSIS β
here's the struct, and yes i'm giving it to you exactly as it is because we do not mess with code in this house:
struct ubi_rename_entry {
int new_name_len;
char new_name[UBI_VOL_NAME_MAX + 1];
int remove;
struct ubi_volume_desc *desc;
struct list_head list;
};
that's her. that's the whole girl. iconic. π
π Members π
okay let's do a little member-by-member vibe check, one at a time, because each one eats π
new_name_lenβ the length of the new volume name. that's it, that's the whole field, she's just a number holding it down. π₯new_nameβ the new volume name itself. the actual name. the main character string. πremoveβ okay so if this is not zero, this volume should be removed, not re-named. read that again bestie, it's a whole different operation hiding in there π like the field said "rename or nah?" and chose violence.descβ the descriptor of the volume. yep. that's the vibe. π¦listβ links re-name entries into a list. she's the social one, she connects everybody. π«Ά
π¦ Description π¦
so where does this struct actually get used? in the multiple volume re-name code, periodt.
here's the tea: UBI first creates a list of struct ubi_rename_entry objects from the struct ubi_rnvol_req request object, and then it uses this list to do all the job. all of it. the whole job. no crumbs left. π₯ like, the request comes in, she gets converted into a lil list of these entries, and then the list does the actual work. teamwork makes the dream work, iykyk. π
π SEE ALSO π
bestie there are SO many siblings, buckle up, i'm listing every single one because i would never do you like that π
check out the kernel file ./drivers/mtd/ubi/ubi.h, plus these absolute legends:
struct ubi_vid_io_buf(9)struct ubi_wl_entry(9)struct ubi_ltree_entry(9)struct ubi_fastmap_layout(9)struct ubi_fm_pool(9)struct ubi_eba_leb_desc(9)struct ubi_volume(9)struct ubi_volume_desc(9)struct ubi_debug_info(9)struct ubi_device(9)struct ubi_ainf_peb(9)struct ubi_ainf_volume(9)struct ubi_attach_info(9)struct ubi_work(9)ubi_init_vid_buf(9)ubi_free_vid_buf(9)ubi_get_vid_hdr(9)ubi_ro_mode(9)vol_id2idx(9)idx2vol_id(9)ubi_is_fm_vol(9)ubi_find_fm_block(9)
go read them all, they're all slaying in their own lanes π
π friendly reminder: remove being non-zero means remove, not re-name. don't get it twisted bestie, that volume is gone-gone.
and that's the page!! π this little gem lives in ./drivers/mtd/ubi, it's dated October 2026, and the whole thing is filed under struct ubi_rename_entry(9). mwah, go forth and rename 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