mirror of
https://github.com/gatieme/LDD-LinuxDeviceDrivers.git
synced 2026-08-20 03:33:20 +08:00
find-task中添加了print_vm_area的代码...
This commit is contained in:
+5
-5
@@ -17,11 +17,6 @@
|
||||
(type *)( (char *)__mptr - offsetof(type,member) );})
|
||||
#endif
|
||||
|
||||
|
||||
static int pid = 1;
|
||||
|
||||
module_param(pid,int,0644);
|
||||
|
||||
static void print_vm_area(struct vm_area_struct)
|
||||
{
|
||||
((tmp->vm_flags & VM_READ) == 1) ? printk("r") : printk("-");
|
||||
@@ -77,3 +72,8 @@ static void print_vm_area_by_rbtree(struct task_struct *task)
|
||||
print_rb_tree(root);
|
||||
|
||||
}
|
||||
|
||||
static void print_stack_vmarea(struct task_struct *task)
|
||||
{
|
||||
print_
|
||||
}
|
||||
Reference in New Issue
Block a user