summaryrefslogtreecommitdiff
path: root/.github/workflows/static_code_analysis.yml
diff options
context:
space:
mode:
authorShell <[email protected]>2024-11-12 17:47:51 +0800
committerRbb666 <[email protected]>2025-01-06 19:34:16 +0800
commit944f3d05b508d5eaeaabd8f5d2964847c80dbc3e (patch)
tree88e5495e34196d59c5a15b2459769e82bda73c3e /.github/workflows/static_code_analysis.yml
parent972931c991e432a1030205959f4be4351a5710d6 (diff)
feat: add system reboot and process teardown support
The patch introduces support for system reboot functionality and process teardown, allowing for a clean shutdown and unmounting of the root filesystem. This is necessary for ensuring a proper system shutdown process, especially when dealing with resource cleanup and ensuring that all processes have exited before system shutdown. Changes: - Added `lwp_teardown()` function to handle process cleanup and system teardown. - Introduced `lwp_pid_wait_for_empty()` to wait for process ID table emptiness before proceeding with shutdown. - Updated `dfs_mnt_unref()` to trigger callbacks when unmounting a filesystem. - Added new reboot types (`RB_AUTOBOOT`, `RB_POWER_OFF`) and implemented their corresponding actions, including cleanup of processes and unmounting root filesystem. - Extended `sys_reboot()` to handle reboot and power off types with appropriate callbacks for process and filesystem teardown. - Introduced callback mechanism for root filesystem unmount notifications. Signed-off-by: Shell <[email protected]>
Diffstat (limited to '.github/workflows/static_code_analysis.yml')
0 files changed, 0 insertions, 0 deletions