📄 exit.c.txt
字号:
any problems, send mails to sindybear@163.com
相关文件
***************************内核线程的建立********************************
(1)
void daemonize(void)
exit_mm(current); //关闭所有的用户页面。只使用内核页表,使用内核空间
current->session = 1; //???
current->pgrp = 1;
current->tty = NULL;
/*
* 以下的代码使得这个线程继承init_task的内容,从而脱离它的用户进程。
*/
exit_fs(current);
fs = init_task.fs;
current->fs = fs;
atomic_inc(&fs->count);
exit_files(current);
current->files = init_task.files;
atomic_inc(¤t->files->count);
*************************************************************************
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -