firmware_map_add_entry(9)
π firmware_map_add_entry β a Kernel API Manual moment π
okay bestie, so this one is from the Kernel API Manual (yes, the firmware_map_add_entry(9) girlies are gonna eat) and it's literally the function that does the actual real work of adding a firmware memmap entry. no cap. β¨
π SYNOPSIS π
int firmware_map_add_entry (u64 start , u64 end , const char *type ,
struct firmware_map_entry *entry );
that's the whole signature, copy it exactly, don't be weird about the spacing π«Ά
πΈ ARGUMENTS πΈ
startβ where the memory range starts. the beginning. the origin story. π«endβ where the memory range ends β and heads up, it's exclusive, meaning the end itself is not included. very "boundary-setting queen" of it. πtypeβ the type of the memory range.const char *, so it's a string, and it's not yours to mess with. πentryβ a pre-allocated, uninitialised entry. and when we say pre-allocated we mean eitherkmallocor the bootmem allocator did it. you gotta bring your own entry, bestie, this function is not doing that for you. π
π¦ DESCRIPTION π¦
so this is the common implementation behind firmware_map_add and firmware_map_add_early β the shared main-character code path π₯ β and the whole vibe is that it expects a pre-allocated struct firmware_map_entry. that's the deal. you hand it the entry, it does the real work of adding it to the firmware memmap. iconic behaviour, honestly. π
β RETURN β
0 β always. literally always. no drama, no surprises, just 0 every single time. πβ¨
π SEE ALSO π
- the kernel file
./drivers/firmware/memmap.cβ go read the source, iykyk π firmware_map_remove_entry(9)firmware_map_find_entry_in_list(9)firmware_map_find_entry(9)firmware_map_find_entry_bootmem(9)firmware_map_add_hotplug(9)firmware_map_add_early(9)firmware_map_remove(9)
like a whole friend group of memmap functions, and every single one of them is linked above fr fr π«Ά
ngl this whole page lives in./drivers/firmwareπ and it's dated October 2026 β so yeah, she's from the future, and she's stillfirmware_map_add_entry(9). slay. π§ββοΈπ
π¦ 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