ubi_scan_fastmap(9)
β¨ ubi_scan_fastmap π
okay so this is a manual page from the Kernel API Manual for ubi_scan_fastmap(9) β yes bestie, the fastmap scanner, we're getting into it π«Ά
πΈ SYNOPSIS πΈ
int ubi_scan_fastmap (struct ubi_device *ubi , struct ubi_attach_info
*ai , struct ubi_attach_info *scan_ai );
like literally that's the whole signature, no notes, copying it exactly because that's how we do π
π ARGUMENTS π
ubiβ the UBI device object π this is the main character of the operationaiβ the UBI attach info that's gonna get filled β think of it as the empty notebook you're handing over β¨scan_aiβ the UBI attach info coming from the first 64 PEBs π§ this one's got a job: it's used to find the most recent Fastmap data structure, iykyk
π¦ DESCRIPTION π¦
okay so the returns, pay attention bestie, this is the whole vibe check π
- Returns
0on success β slay, we ate π - Returns
UBI_NO_FASTMAPif no fastmap was found β like, nothing there, empty, a whole ghost town π - Returns
UBI_BAD_FASTMAPif one was found but it's not usable β found it but it's giving expired milk π < 0indicates an internal error β that's a "not me, that's a system problem" moment π
ngl the returns are the entire point here, lowkey highkey memorize them π
π SEE ALSO π
the whole friend group π«Ά first up, the kernel file itself:
- Kernel file
./drivers/mtd/ubi/fastmap.c
and then the crew, in exactly this order, no cap:
init_seen(9),free_seen(9),set_seen(9),self_check_seen(9),ubi_calc_fm_size(9),new_fm_vbuf(9),add_aeb(9),add_vol(9),assign_aeb_to_av(9),update_vol(9),process_pool_aeb(9),unmap_peb(9),scan_pool(9),count_fastmap_pebs(9),ubi_attach_fastmap(9),find_fm_anchor(9),ubi_write_fastmap(9),invalidate_fastmap(9),return_fm_pebs(9),ubi_update_fastmap(9)
and that's the page!! π sign-off time: this one lives in ./drivers/mtd/ubi, dated October 2026, and it's filed under ubi_scan_fastmap(9) β periodt π
β¨π¦
π¦ 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