ubi_free_aeb(9)
β¨ ubi_free_aeb(9) β¨
okay so this is a page from the Kernel API Manual, bestie β welcome to the ubi_free_aeb(9) chapter, it's giving "small function, big consequences" energy π
π NAME π
ubi_free_aeb β free an aeb element. that's it. that's the whole job. no cap β¨
π¦ SYNOPSIS π¦
void ubi_free_aeb (struct ubi_attach_info *ai , struct ubi_ainf_peb *aeb
);
literally just two args and a dream, and it returns void because it doesn't owe you an explanation π
πΈ ARGUMENTS πΈ
aiβ attaching information π«Ά this is the context bestie, it's where the whole attaching situation livesaebβ the element to free π yeah. the actual thing you're yeeting into the void
π DESCRIPTION π
okay so picture this: you've got an aeb object and you want it gone. ubi_free_aeb frees it. iconic. slay. done.
but β and this is the important part, listen up π β the caller must have removed the element from any list or RB tree first. like, before you call this. the element has to be already unlinked from wherever it was hanging out. no sneak-frees. if you didn't detach it first, that's on you, not on the function π
periodt. that's the contract.
π₯ SEE ALSO π₯
this function lives in the kernel file ./drivers/mtd/ubi/attach.c and honestly it's surrounded by so many friends it's basically a group chat π here's the whole squad:
find_or_add_av(9)ubi_find_or_add_av(9)ubi_alloc_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_all(9)scan_fast(9)ubi_attach(9)self_check_ai(9)
iykyk π§
π reminder bestie: unlink it first, then free it. the other way around is not a vibe check you want to fail.
and that's the page! π« brought to you by the fine folks over at ./drivers/mtd/ubi, dated October 2026, for ubi_free_aeb(9) β catch you in the next manpage, 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