Page MenuHomeFreeBSD

kern_reboot(9): describe event handlers
ClosedPublic

Authored by mhorne on Mar 16 2023, 7:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 16 2024, 8:36 AM
Unknown Object (File)
Oct 1 2024, 1:27 AM
Unknown Object (File)
Sep 27 2024, 12:28 PM
Unknown Object (File)
Sep 26 2024, 8:36 AM
Unknown Object (File)
Sep 24 2024, 3:13 PM
Unknown Object (File)
Sep 19 2024, 8:05 PM
Unknown Object (File)
Sep 19 2024, 6:28 PM
Unknown Object (File)
Sep 15 2024, 5:43 PM

Details

Summary

Add more details about the execution and purpose of these shutdown
handlers. Make a point to mention the requirement that they can be run
in a normal or panic context. Add a simple example of a shutdown_final
handler.

Add a brief comment to the declaration in sys/eventhandler.h.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 50483
Build 47374: arc lint + arc unit

Event Timeline

markj added inline comments.
share/man/man9/kern_reboot.9
218
This revision is now accepted and ready to land.Mar 16 2023, 7:49 PM
rpokala added inline comments.
share/man/man9/kern_reboot.9
272

This example
.Vt shutdown_final
handler uses the
.Dv RB_NOSYNC
flag to detect that a panic or other unusual condition has occurred, and returns early.

Very minor, fixable on commit.

share/man/man9/kern_reboot.9
185

Clarity for EFL readers

208
239
mhorne marked 5 inline comments as done.

Fix nits.

This revision now requires review to proceed.Mar 20 2023, 2:35 PM
This revision is now accepted and ready to land.Mar 20 2023, 4:26 PM
share/man/man9/kern_reboot.9
272
In this example, the

This one's my fault, I botched it in the example I provided. <facepalm>

This revision was automatically updated to reflect the committed changes.