ubi_dbg_is_write_failure(9)
π ubi_dbg_is_write_failure(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a little debug helper from the UBI world and honestly it's giving "tiny function, big job" energy β¨
πΈ NAME πΈ
ubi_dbg_is_write_failure β literally just tells you if it is time to emulate a write failure. no cap, that's the whole gig π
π¦ SYNOPSIS π¦
bool ubi_dbg_is_write_failure (const struct ubi_device *ubi );
so you call it like that, it hands you back a bool, and you pass in a pointer to a const struct ubi_device. iconic signature, no notes π
β¨ ARGUMENTS β¨
ubiβ the UBI device description object π«Ά that's it, that's the one thing it wants from you
π DESCRIPTION π
Returns true if a write failure should be emulated, otherwise returns false.
that's literally it bestie β it's a yes/no vibe check on whether the debug layer should fake a write failure right now π₯ true = go ahead and pretend the write failed, false = nah, we're good π
no side quests, no surprises, just a boolean and a dream π
π SEE ALSO π
Kernel file ./drivers/mtd/ubi/debug.h β and honestly the whole debug friend group, go say hi:
ubi_dbg_is_power_cut(9)ubi_dbg_is_bitflip(9)ubi_dbg_is_erase_failure(9)ubi_dbg_is_eccerr(9)ubi_dbg_is_read_failure(9)ubi_dbg_is_ff(9)ubi_dbg_is_ff_bitflips(9)ubi_dbg_is_bad_hdr(9)ubi_dbg_is_bad_hdr_ebadmsg(9)ubi_dbg_is_bgt_disabled(9)
like, every possible bad-thing-to-emulate has its own little guy and they all live together in ./drivers/mtd/ubi β found family fr fr π§π
okay that's the whole page, mwah π this one came from ./drivers/mtd/ubi, dated October 2026 β see you in the next manpage, bestie, slay πβπ
π¦ 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