mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-20 22:04:56 +08:00
完善了遍历所有进程的内核学习代码
This commit is contained in:
@@ -30,6 +30,7 @@ struct task_struct * findTaskByPid(pid_t pid)
|
||||
*/
|
||||
void getTaskinfo(struct task_struct *task)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
//#define METHOD 2
|
||||
@@ -49,7 +50,6 @@ static int find_task_init(void)
|
||||
printk(KERN_ALERT"PID\tCOMM\tADDR\n");
|
||||
|
||||
|
||||
|
||||
switch(METHOD)
|
||||
{
|
||||
case 1 :
|
||||
|
||||
Reference in New Issue
Block a user