whats wrong with my code ? trying to lock and iterate through read tasks in cfs rq

2016-03-18 Thread nad gam
here is the code of system call I implemented trying to iterate through cfs tasks of cpu_num rq and retrieve their pids : #include #include #include "/home/user/linux-3.14.1/kernel/sched/sched.h" #include #include asmlinkage long sys_get_tasks_from_rq(int cpu_num,void* dst) { struct

whats wrong with my code ? trying to lock and iterate through read tasks in cfs rq

2016-03-18 Thread nad gam
here is the code of system call I implemented trying to iterate through cfs tasks of cpu_num rq and retrieve their pids : #include #include #include "/home/user/linux-3.14.1/kernel/sched/sched.h" #include #include asmlinkage long sys_get_tasks_from_rq(int cpu_num,void* dst) { struct