函数逻辑报告 |
Source Code:kernel\exit.c |
Create Date:2022-07-27 10:03:00 |
Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_exit
函数原型:void __noreturn do_exit(long code)
返回类型:void
参数:
类型 | 参数 | 名称 |
---|---|---|
long | code |
716 | profile_task_exit(tsk) |
717 | kcov_task_exit(tsk) |
721 | 如果此条件成立可能性小(为编译器优化)(in_interrupt())则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
723 | 如果此条件成立可能性小(为编译器优化)(!进程ID)则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
743 | 如果此条件成立可能性小(为编译器优化)(任务标志 & Getting shut down )则 |
744 | 打印警报信息("Fixing recursive fault but reboot is needed!\n") |
745 | futex_exit_recursive(tsk) |
746 | set_current_state(深度睡眠态) |
747 | schedule() |
750 | exit_signals(tsk) |
760 | 如果内存信息则sync_mm_rss(内存信息) |
762 | acct_update_integrals(tsk) |
763 | group_dead等于atomic_dec_and_test( & live) |
764 | 如果group_dead则 |
769 | 如果此条件成立可能性小(为编译器优化)(检查进程已初始化)则panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns. |
777 | 如果内存信息则setmax_mm_hiwater_rss( & maxrss, 内存信息) |
780 | acct_collect(code, group_dead) |
781 | 如果group_dead则tty_audit_exit() |
783 | audit_free(tsk) |
785 | 进程退出时发出的标号等于code |
786 | taskstats_exit(tsk, group_dead) |
790 | 如果group_dead则acct_process() |
796 | exit_files(tsk) |
798 | 如果group_dead则disassociate_ctty(1) |
800 | exit_task_namespaces(tsk) |
801 | exit_task_work(tsk) |
811 | perf_event_exit_task(tsk) |
814 | cgroup_exit(tsk) |
821 | exit_tasks_rcu_start() |
823 | proc_exit_connector(tsk) |
824 | mpol_put_task_policy(tsk) |
834 | 如果异步I/O请求则exit_io_context(tsk) |
845 | check_stack_usage() |
846 | 禁止抢占() |
847 | 如果赃页数则__this_cpu_add(dirty_throttle_leaks, 赃页数) |
850 | exit_tasks_rcu_finish() |
852 | lockdep_free_task(tsk) |
853 | do_task_dead() |
名称 | 描述 |
---|---|
save_v86_state | |
complete_and_exit | |
SYSCALL_DEFINE1 | |
do_group_exit | Take down every thread in the group. This is called by fatal signals* as well as by sys_exit_group (below). |
call_usermodehelper_exec_async | This is the task which runs the usermode application |
kthread | |
SYSCALL_DEFINE4 | Reboot system call: for obvious reasons only root may call it,* and even root needs to set up some magic numbers in the registers* so that some mistake won't make this reboot the whole machine.* You can also set the meaning of the ctrl-alt-del-key here. |
__module_put_and_exit | A thread that wants to hold a reference to a module only while it* is running can call this to safely exit. nfsd and lockd use this. |
reboot_pid_ns | |
__secure_computing_strict | |
SYSCALL_DEFINE2 | There are no bdflush tunables left. But distributions are* still running obsolete flush daemons, so we terminate them here.* Use of bdflush() is deprecated and will be removed in a future kernel. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |