firmware_map_add_early(9)
π¦ firmware_map_add_early(9) π¦
okay so welcome to the Kernel API Manual, bestie β todayβs main character is firmware_map_add_early(9), and the vibes are extremely bootmem.
β¨ NAME β¨
firmware_map_add_early β adds a firmware mapping entry. periodt.
πΈ SYNOPSIS πΈ
int firmware_map_add_early (u64 start , u64 end , const char *type );
π ARGUMENTS π
startβ start of the memory range. the opening scene, the βonce upon a timeβ of this range.endβ end of the memory range. the closing credits, the βthatβs a wrapβ of this range.typeβ type of the memory range. the little label on the memory-range outfit.
π«Ά DESCRIPTION π«Ά
Adds a firmware mapping entry. This function uses the bootmem allocator for memory allocation. no cap.
β οΈ okay so the timeline is strict, bestie: that function must be called before late_initcall. not after, not βwhenever you get around to itβ β before. π
π₯ RETURN π₯
0 on success, or -ENOMEM if no memory could be allocated. so if it slays, you get 0; if memory is giving absolutely nothing, you get -ENOMEM. π
π 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(9)firmware_map_find_entry_bootmem(9)firmware_map_add_hotplug(9)firmware_map_remove(9)
thatβs the whole page, bestie π β source/version hood is ./drivers/firmware, and the date on this iconic drop is October 2026. mwah π
π¦ 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