Function report |
Source Code:kernel\exit.c |
Create Date:2022-07-28 09:03:18 |
Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_exit
Proto:void __noreturn do_exit(long code)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
long | code |
713 | tsk = current process |
716 | profile_task_exit(tsk) |
717 | kcov_task_exit(tsk) |
719 | WARN_ON(blk_needs_flush_plug(tsk)) |
744 | pr_alert("Fixing recursive fault but reboot is needed!\n") |
745 | futex_exit_recursive(tsk) |
747 | schedule() |
750 | exit_signals(tsk) |
753 | pr_info("note: %s[%d] exited with preempt_count %d\n", comm, task_pid_nr(current process), We mask the PREEMPT_NEED_RESCHED bit so as not to confuse all current users* that think a non-zero value indicates we cannot preempt.) |
760 | If mm Then sync_mm_rss(mm) |
762 | acct_update_integrals(tsk) |
763 | group_dead = atomic_dec_and_test( & live) |
764 | If group_dead Then |
777 | If mm Then setmax_mm_hiwater_rss( & maxrss, mm) |
780 | acct_collect(code, group_dead) |
781 | If group_dead Then tty_audit_exit() |
783 | audit_free(tsk) |
786 | taskstats_exit(tsk, group_dead) |
790 | If group_dead Then acct_process() |
796 | exit_files(tsk) |
798 | If group_dead Then 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 | If io_context Then exit_io_context(tsk) |
845 | check_stack_usage() |
850 | exit_tasks_rcu_finish() |
852 | lockdep_free_task(tsk) |
853 | do_task_dead() |
Name | Describe |
---|---|
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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |