efi_exit_boot_services(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 party
  • priv β€” the argument that gets passed along to priv_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 🌈

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