scan_all(9)
β¨ scan_all(9) β¨
okay so real talk, this one is from the Kernel API Manual and it's literally the function that scans your whole MTD device. no cap. π
π NAME
scan_all β scan entire MTD device.
πΈ SYNOPSIS
int scan_all (struct ubi_device *ubi , struct ubi_attach_info *ai , int start );
π¦ ARGUMENTS
ubiβ the UBI device description object, aka the whole vibe of the device you're dealing with π«Άaiβ the attach info object, this is where all the tea gets storedstartβ start scanning at this PEB. yes bestie, this one, right here, that's the starting point β
π₯ DESCRIPTION
so this function does a full scanning of an MTD device and hands you back complete information about it in the form of a "struct ubi_attach_info" object. like, the entire picture, no crumbs left behind π
and if things go sideways? in case of failure, an error code is returned. that's it, that's the deal π
ngl, "full scanning" means full β it's not doing a little peek, it's the whole device. main character energy fr fr π
π SEE ALSO
the kernel file lives at ./drivers/mtd/ubi/attach.c, and it's giving a whole extended friend group β say hi to:
find_or_add_av(9)ubi_find_or_add_av(9)ubi_alloc_aeb(9)ubi_free_aeb(9)add_to_list(9)add_corrupted(9)add_fastmap(9)validate_vid_hdr(9)add_volume(9)ubi_compare_lebs(9)ubi_add_to_av(9)ubi_add_av(9)ubi_find_av(9)ubi_remove_av(9)early_erase_peb(9)ubi_early_get_peb(9)check_corruption(9)scan_peb(9)late_analysis(9)destroy_av(9)destroy_ai(9)scan_fast(9)ubi_attach(9)self_check_ai(9)
and that's the whole page, bestie π
β¨ this one came straight out of ./drivers/mtd/ubi β October 2026, scan_all(9). mwah ππ
π¦ 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