memblock_reserved_mark_kern(9)
π memblock_reserved_mark_kern (9) β Kernel API Manual π
okay so bestie, welcome to the kernel API docs, this one's literally called memblock_reserved_mark_kern and it's about tagging a reserved memory region with a flag. slay. let's get into it π«Ά
β¨ NAME β¨
memblock_reserved_mark_kern β marks a reserved memory region with the flag MEMBLOCK_RSRV_KERN. that's the whole vibe. no cap. π
πΈ SYNOPSIS πΈ
int __init_memblock memblock_reserved_mark_kern (phys_addr_t base ,
phys_addr_t size );
look at her go π she takes two args and gives you back an int, and she's both __init_memblock and iconic. iykyk.
π¦ ARGUMENTS π¦
baseβ the base phys addr of the region. like, where the region starts, physically π«sizeβ the size of the region. how much of it there is, bestie π
π₯ RETURN π₯
0on success β¨-errnoon failure π
so basically if you get 0 you ate, and if you get a negative errno something went sideways and it's giving error vibes. periodt.
π SEE ALSO π
okay this list is lowkey long but every single one matters, so here we go, no skipping, fr fr π
- Kernel file
./mm/memblock.cmemblock overview(9) __memblock_find_range_bottom_up(9)__memblock_find_range_top_down(9)memblock_find_in_range_node(9)memblock_find_in_range(9)memblock_discard(9)memblock_double_array(9)memblock_merge_regions(9)memblock_insert_region(9)memblock_add_range(9)memblock_add_node(9)memblock_add(9)memblock_validate_numa_coverage(9)memblock_isolate_range(9)memblock_free(9)memblock_phys_free(9)memblock_setclr_flag(9)memblock_mark_hotplug(9)memblock_clear_hotplug(9)memblock_mark_mirror(9)memblock_mark_nomap(9)memblock_clear_nomap(9)memblock_reserved_mark_noinit(9)memblock_mark_kho_scratch(9)memblock_clear_kho_scratch(9)__next_mem_range(9)__next_mem_range_rev(9)memblock_set_node(9)memblock_alloc_range_nid(9)memblock_phys_alloc_range(9)memblock_phys_alloc_try_nid(9)memblock_alloc_internal(9)memblock_alloc_exact_nid_raw(9)memblock_alloc_try_nid_raw(9)memblock_alloc_hugetlb(9)memblock_alloc_try_nid(9)__memblock_alloc_or_panic(9)memblock_estimated_nr_free_pages(9)memblock_is_region_memory(9)memblock_is_region_reserved(9)memblock_free_all(9)reserve_mem_find_by_name(9)reserve_mem_release_by_name(9)
like, that's the whole memblock friend group and they're all linked. main character energy all around πβ
ngl bestie, this is a kernel-internal thing, so don't go calling it from userspace, it lives in ./mm where the memory management girlies hang out π§
mwah π this page came from the source ./mm and it's dated October 2026 β go off, kernel docs, you absolute legend ππ
π¦ 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