efi_exit_boot_services(9)
π efi_exit_boot_services (9) β the kernel API manual, bestie edition π
okay so you found the efi_exit_boot_services(9) page, iconic, this is the kernel API manual one, not your regular commands π let's get into it
β¨ NAME β¨
efi_exit_boot_services β exit boot services πͺβ¨ (yes literally that, bestie says what it does on the tin)
π¦ SYNOPSIS π¦
efi_status_t efi_exit_boot_services (void *handle , void *priv ,
efi_exit_boot_map_processing priv_func );
like look at her. three args. one job. slay π
πΈ ARGUMENTS πΈ
handleβ the handle of the exiting image π like who's leaving the partyprivβ the argument that gets passed along topriv_func, it's the little bag of stuff you're handing over πpriv_funcβ the function that processes the memory map before exiting boot services, like a quick vibe check on the map before we dip πΊοΈβ¨
π DESCRIPTION π
okay so here's the tea π this handles calling ExitBootServices according to the requirements set out by the spec β no cap, the spec is the boss here.
It obtains the current memory map, and returns that info after calling ExitBootServices. so basically: grab the map, do the exit, hand the info back π«Ά
the client must specify a function to perform any processing of the memory map data prior to ExitBootServices. not optional. mandatory. periodt π
A client specific structure may be passed to that function via priv β that's literally what priv is for, bestie π
And heads up: the client function may be called multiple times. like not just once. multiple. so don't go assuming it's a one-and-done situation π
β RETURN β
status code β that's it, that's the return, a status code, go check it π
π SEE ALSO π
- Kernel file
./drivers/firmware/efi/libstub/efi-stub-helper.c efi_parse_options(9)get_efi_config_table(9)efi_load_initrd_dev_path(9)efi_load_initrd(9)efi_wait_for_key(9)efi_remap_image(9)
all the cousins, the whole friend group, go read them too π
π§ lowkey reminder: this is kernel API business, so keep the details exact, the vibes are yours but the facts are the spec's π
okay that's the page!! this one lives over in ./drivers/firmware/efi/libstub, dated October 2026, and it's page efi_exit_boot_services(9) of the Kernel API Manual β stan forever, bye bestie ππβ¨
π¦ 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