1. 首页
  2. 安全技术
  3. 网络攻防
  4. 关于Linux内核进程的遍历

关于Linux内核进程的遍历

上传者: 2019-06-01 06:47:55上传 RAR文件 24.38KB 热度 76次
intinit_module(){structtask_struct*task;structlist_head*q;list_for_each(q,&init_task.tasks){task=list_entry(q,structtask_struct,tasks);printk("""%d\t%d\t%s\n",task->pid,task->parent->pid,task->comm);}return0;}
下载地址
用户评论
码姐姐匿名网友 2019-06-01 06:47:55

好资源,学习一下。

码姐姐匿名网友 2019-06-01 06:47:55

最基础的遍历,初学linux进程遍历的话可以看一看。

码姐姐匿名网友 2019-06-01 06:47:55

能实现基础的遍历。

码姐姐匿名网友 2019-06-01 06:47:55

虽然东西不是很强,但是对于初学者还是很合适