firmware_map_find_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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