torture_peb(9)
π
torture_peb(9) β Kernel API Manual β¨
Okay bestie, welcome to the torture_peb page. This is the Kernel API Manual, and weβre about to vibe-check a physical eraseblock that is supposedly bad. No cap. π«Ά
πΈ NAME πΈ
torture_peb β test a supposedly bad physical eraseblock.
β¨ SYNOPSIS β¨
int torture_peb (struct ubi_device *ubi , int pnum );
π ARGUMENTS π
ubiβ UBI device description object. Itβs giving βthe whole device situation.β πpnumβ the physical eraseblock number to test. Literally the PEB number weβre putting under the microscope. π
π DESCRIPTION π
So hereβs the tea: this function returns -EIO if the physical eraseblock did not pass the test. π
If the test was successfully passed, it returns a positive number of erase operations done. Slay. β¨
And in case of other errors, it returns other negative error codes. Periodt. π
π¦ SEE ALSO π¦
Kernel file ./drivers/mtd/ubi/io.c and all these iconic little functions:
ubi_io_read(9)ubi_io_write(9)do_sync_erase(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)ubi_self_check_all_ff(9)
Cute lil sign-off: this pageβs source/version is ./drivers/mtd/ubi, and the date on it is October 2026. ππβ¨
π¦ 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