ubi_self_check_all_ff(9)
β¨ ubi_self_check_all_ff(9) β¨
okay bestie, welcome to the Kernel API Manual entry for ubi_self_check_all_ff β yes it's a mouthful, yes it's iconic, and yes we're gonna get through it together π
πΈ NAME πΈ
ubi_self_check_all_ff β literally just checking that a region of flash is empty. that's it. that's the whole vibe. no cap. π«Ά
β¨ SYNOPSIS β¨
int ubi_self_check_all_ff (struct ubi_device *ubi , int pnum , int
offset , int len );
look at her go π she takes four arguments and returns an int, main character energy fr fr.
π ARGUMENTS π
ubiβ the UBI device description object. like, the whole device's little info packet πpnumβ the physical eraseblock number we're checking. which block bestie, tell me which block πoffsetβ the starting offset within the physical eraseblock to check. not from zero, from here β¨lenβ the length of the region to check. how far we're looking, basically π¦
π DESCRIPTION π
so here's the tea: this function returns zero if only 0xFF bytes are present at offset offset of the physical eraseblock pnum. squeaky clean, all empty, slay π
and if that's not the case β or if an error happened along the way β it returns a negative error code. not zero. negative. so watch for that π
ngl the whole "is it all0xFF" thing is the entire point. if you see anything that isn't0xFFin there, that's a no from her π
π¦ SEE ALSO π¦
the whole friend group, in the kernel file ./drivers/mtd/ubi/io.c:
ubi_io_read(9)ubi_io_write(9)do_sync_erase(9)torture_peb(9)nor_erase_prepare(9)ubi_io_sync_erase(9)ubi_io_is_bad(9)ubi_io_mark_bad(9)validate_ec_hdr(9)ubi_io_read_ec_hdr(9)ubi_io_write_ec_hdr(9)validate_vid_hdr(9)ubi_io_read_vid_hdr(9)ubi_io_write_vid_hdr(9)self_check_not_bad(9)self_check_ec_hdr(9)self_check_peb_ec_hdr(9)self_check_vid_hdr(9)self_check_peb_vid_hdr(9)self_check_write(9)
like a whole group chat of related calls, iykyk π
mwah π this page lives in ./drivers/mtd/ubi, dated October 2026, and it's the ubi_self_check_all_ff(9) entry β go read her friends too, they ate π₯
π¦ 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