<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> have you looked at the nightmare in Linux's reboot.c? <a href="https://elixir.bootlin.com/linux/v6.12.6/source/arch/x86/kernel/reboot.c#L610" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">elixir.bootlin.com/linux/v6.12</span><span class="invisible">.6/source/arch/x86/kernel/reboot.c#L610</span></a><br />(and note that this doesn't include the giant table of system specific quirks!)</p>