DOSTARTUPHOOKS(9)

πŸ“¦ in nixpkgs unstable

πŸ’– NAME

okay bestie, this is dostartuphooks from the Kernel Developer’s Manual, section 9 β€” it’s giving β€œthe function that runs all the startup hooks” ✨

  • dostartuphooks β€” literally runs every startup hook πŸ’…

πŸŽ€ SYNOPSIS

#include <sys/types.h>
#include <sys/systm.h>

void
dostartuphooks(void);

πŸ¦‹ DESCRIPTION

So dostartuphooks() is the function that invokes all the startup hooks established with startuphook_establish(9). No cap. They get called in order, i.e., the startup hook established first will be called first β€” first in, first called, periodt. πŸ’…

This function is called from main() with interrupts turned on. It runs immediately before the system configures its root and swap devices, but fully after all normal autoconfiguration. The vibe? It lets device subsystems that need delayed configuration (e.g., because their initialization takes a very long time) still provide the root device. Obsessed. 🫢

Startup hooks are implemented via the more general dohooks(9) API. iykyk. 🌸


🌈 SEE ALSO


cute sign-off bestie: this page is from Debian, dated December 10, 2014, and it’s DOSTARTUPHOOKS(9) β€” mwah πŸ’‹

πŸ“¦ where this page comes from