ubi_io_mark_bad(9)
π ubi_io_mark_bad(9) π
okay so bestie, welcome to the Kernel API Manual page for ubi_io_mark_bad(9) β yes that's the whole header, we're folding it in like a cute little intro, you're welcome β¨
πΈ NAME πΈ
ubi_io_mark_bad β literally the function that marks a physical eraseblock as bad π
like it's tagging a PEB as "do not perceive her" π«
π¦ SYNOPSIS π¦
int ubi_io_mark_bad (const struct ubi_device *ubi , int pnum );
π ARGUMENTS π
ubiβ the UBI device description object π«Ά like, the whole vibe of the device, packaged uppnumβ the physical eraseblock number you're marking. yes, that PEB. her. π
β DESCRIPTION β
so here's the tea, no cap π: this function returns zero in case of success, and a negative error code in case of failure. that's it. that's the whole behavior. slay, honestly β simple, iconic, main character energy π
π§ SEE ALSO π§
like, go read these next, iykyk π β kernel file ./drivers/mtd/ubi/io.c, plus:
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)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)ubi_self_check_all_ff(9)
π that's the whole page bestie, go forth and mark those bad blocks. mwah π
and that's a wrap from ./drivers/mtd/ubi, dated October 2026 β catch you in the group chat, ubi_io_mark_bad(9) out ππβ¨
π¦ 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