self_check_vid_hdr(9)
β¨ self_check_vid_hdr(9) β¨
okay bestie, welcome to the Kernel API Manual π β today's main character is self_check_vid_hdr(9), and honestly? she's a vibe check for your volume identifier headers. π
πΈ NAME πΈ
self_check_vid_hdr β check that a volume identifier header is all right. that's it. that's the job. iconic, lowkey essential. β¨
π¦ SYNOPSIS π¦
int self_check_vid_hdr (const struct ubi_device *ubi , int pnum , const
struct ubi_vid_hdr *vid_hdr );
π ARGUMENTS π
ubiβ the UBI device description object, aka the whole vibe of the device you're checking against π«Άpnumβ the physical eraseblock number that this volume identifier header belongs to, like its little home address πvid_hdrβ the actual volume identifier header being checked, the star of the show π
π DESCRIPTION π
so here's the tea: this function returns zero if the volume identifier header is all right β
, and -EINVAL if it's not π. that's literally the whole plot. no cap.
β SEE ALSO β
the whole friend group, fr fr β shoutout to the kernel file ./drivers/mtd/ubi/io.c for hosting all of this π:
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_peb_vid_hdr(9)self_check_write(9)ubi_self_check_all_ff(9)
ok that's the page!! mwah π this one comes to you from ./drivers/mtd/ubi, dated October 2026 β go read the source bestie, it 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