firmware_map_find_entry(9)
π firmware_map_find_entry(9) π
okay so bestie, welcome to the Kernel API Manual β this one's a little lookup page for the firmware memory map, and it's honestly giving "librarian with a clipboard" energy π
β¨ NAME β¨
firmware_map_find_entry β search for a memmap entry inside map_entries. that's it, that's the whole job π
πΈ SYNOPSIS πΈ
struct firmware_map_entry * firmware_map_find_entry (u64 start , u64 end , const char *type );
π¦ ARGUMENTS π¦
startβ start of the memory range π«Άendβ end of the memory range, and heads up, it's exclusive (so the end itself is not included, she's a boundary not a member π)typeβ the type of the memory range β¨
π DESCRIPTION π
so this function's whole thing is finding the memmap entry for a given memory range. no cap, that's it. π§
β οΈ but listen β the caller must hold map_entries_lock, and must not release that lock until the processing of the returned entry has completed. like, do not let go of that lock early, that's the rule, periodt. π₯
β RETURN β
pointer to the entry that was found on success π β¦ or NULL on failure π
π SEE ALSO π
kernel file ./drivers/firmware/memmap.c plus the whole squad: firmware_map_add_entry(9), firmware_map_remove_entry(9), firmware_map_find_entry_in_list(9), firmware_map_find_entry_bootmem(9), firmware_map_add_hotplug(9), firmware_map_add_early(9), firmware_map_remove(9) π
and that's the page!! π sourced from that ./drivers/firmware life, stamped October 2026 β go find your entries bestie, ily ππ¦
π¦ 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