self_check_eba(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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, iconic
  • ai_fastmap β€” UBI attach info object created by fastmap ✨ the fastmap-built one
  • ai_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 πŸ’€


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