ubi_get_compat(9)
β¨ ubi_get_compat(9) β get compatibility flags of a volume β¨
okay bestie, welcome to the kernel API manual for ubi_get_compat(9), straight out of the ubi corner of the kernel π this one's short and sweet, so let's get into it.
πΈ SYNOPSIS πΈ
int ubi_get_compat (const struct ubi_device *ubi , int vol_id );
π ARGUMENTS π
ubiβ the UBI device description object. like, the whole device's vibe in struct form πvol_idβ the volume ID. which volume are we talking about, bestie?
π¦ DESCRIPTION π¦
so this function returns the compatibility flags for an internal volume. that's it, that's the whole job β¨
and here's the fun part: user volumes literally have no compatibility flags, so for those you just get 0 back. zero. nada. the void. π«Ά
π SEE ALSO π
the kernel file ./drivers/mtd/ubi/eba.c, plus this whole little friend group of functions and structs:
struct ubi_eba_entry(9)struct ubi_eba_table(9)ubi_next_sqnum(9)ubi_eba_get_ldesc(9)ubi_eba_create_table(9)ubi_eba_destroy_table(9)ubi_eba_copy_table(9)ubi_eba_replace_table(9)ltree_lookup(9)ltree_add_entry(9)leb_read_lock(9)leb_read_unlock(9)leb_write_lock(9)leb_write_trylock(9)leb_write_unlock(9)ubi_eba_is_mapped(9)ubi_eba_unmap_leb(9)check_mapping(9)ubi_eba_read_leb(9)ubi_eba_read_leb_sg(9)try_recover_peb(9)recover_peb(9)try_write_vid_and_data(9)ubi_eba_write_leb(9)ubi_eba_write_leb_st(9)is_error_sane(9)ubi_eba_copy_leb(9)print_rsvd_warning(9)self_check_eba(9)ubi_eba_init(9)
and that's the whole page, bestie π this lil doc lives in ./drivers/mtd/ubi and it's dated October 2026 β slay, see you in the kernel docs again soon πβ¨πΈ
π¦ 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