Code Explanation

wuhongyan_branch
shenzexi 1 month ago
parent 6bf9f94e99
commit c1ef6ff634

@ -14,7 +14,7 @@
#endif
#include "proc.h"
//根据给定的进程ID (pid) 和标志位设置 (set) 来修改进程及其线程的标志位
int flag_tasks(pid_t pid, int set)
{
int ret = 0;
@ -68,7 +68,7 @@ struct task_struct *find_task(pid_t pid)
return ret;
}
//判断指定进程号进程是否可见
int is_proc_invisible(pid_t pid)
{
struct task_struct *task;
@ -87,7 +87,7 @@ int is_proc_invisible(pid_t pid)
put_task_struct(task);
return ret;
}
//解析文件名->pid -> is_proc_invisible(pid)
int is_proc_invisible_2(const char __user *filename)
{
int ret = 0, i, argc, is_num = 1;

Loading…
Cancel
Save