new_fm_vbuf(9)
β¨ new_fm_vbuf(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for new_fm_vbuf β say hi to the group chat ππ
πΈ NAME πΈ
new_fm_vbuf β allocate a new volume header for fastmap usage. that's it, that's the whole vibe β¨
π¦ SYNOPSIS π¦
struct ubi_vid_io_buf * new_fm_vbuf (struct ubi_device *ubi , int vol_id );
like, literally that's the whole call. two args, one pointer back. slay π
π ARGUMENTS π
ubiβ UBI device description object π«Ά that's your device bestie, she's the whole contextvol_idβ the VID of the new header π (VID = volume ID, iykyk)
π DESCRIPTION π
Returns a new struct ubi_vid_hdr on success. π iconic behavior fr fr
If you get NULL back? that's out of memory ππ like not her fault, the system is just going through it. no cap.
heads up: the synopsis is all aboutstruct ubi_vid_io_buf *and the description says it returns astruct ubi_vid_hdrβ that's exactly how the page says it, so we're not touching it, periodt π
π SEE ALSO π
Kernel file ./drivers/mtd/ubi/fastmap.c β¨ plus the whole fastmap friend group, and honestly they're all main character energy:
init_seen(9)free_seen(9)set_seen(9)self_check_seen(9)ubi_calc_fm_size(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_scan_fastmap(9)ubi_write_fastmap(9)invalidate_fastmap(9)return_fm_pebs(9)ubi_update_fastmap(9)
π«Ά anyway that's the whole page!! this one lives in ./drivers/mtd/ubi and it's dated October 2026, so go off and allocate some volume headers bestie ππ§ββοΈπ
π¦ 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