self_check_eba(9)
β¨ self_check_eba β¨
okay so bestie, welcome to the Kernel API Manual π today's main character is self_check_eba(9) and she is literally the vibe check of the EBA table world, no cap.
πΈ NAME πΈ
self_check_eba β run a self check on the EBA table constructed by fastmap. that's it, that's the whole job, and she does it flawlessly π
π¦ SYNOPSIS π¦
int self_check_eba (struct ubi_device *ubi , struct ubi_attach_info *ai_fastmap , struct ubi_attach_info *ai_scan );
π ARGUMENTS π
ubiβ UBI device description object π«Ά the whole device, iconicai_fastmapβ UBI attach info object created by fastmap β¨ the fastmap-built oneai_scanβ UBI attach info object created by scanning π¦ the scanned one
π DESCRIPTION π
so here's the sitch: this function returns < 0 in case of an internal error, and 0 otherwise. periodt.
but wait β if a bad EBA table entry was found, it will be printed out and ubi_assert triggers. π
real talk bestie, that ubi_assert is not a drill β a bad EBA table entry gets printed out and then the assert goes off. do not ignore her π
π₯ SEE ALSO π₯
the kernel file in question is ./drivers/mtd/ubi/eba.c β and honestly the whole friend group showed up, so here's every single one of them, not me listing all 30 but here we are π
struct ubi_eba_entry(9)struct ubi_eba_table(9)ubi_next_sqnum(9)ubi_get_compat(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)ubi_eba_init(9)
and that's the page!! πβ¨π¦ this gorgeous thing lives over in ./drivers/mtd/ubi, it's dated October 2026, and it's filed under self_check_eba(9) β mwah, drink water, go read eba.c ππ
π¦ 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