find_task_by_pid() problem
Quoted 3 lines
I'm using the routine
find_task_by_vpid() linux /sched.h(the oldestfind_task_by_pid()don't exist), but when I try to compile the file Ihello_world.creturns an error:
You can only use kernel's EXPORTed symbol, ie. EXPORT_SYMBOL*(), when you write a module program because kernel links it on its own way. Try this instead.
pid_task(find_vpid(...), PIDTYPE_PID)
Signature · 2 lines
Regards, Namhyung Kim
2010/8/10 Namhyung Kim <[email protected]>:
Quoted 10 lines
Quoted 3 lines
I'm using the routine
find_task_by_vpid() linux /sched.h(the oldestfind_task_by_pid()don't exist), but when I try to compile the file Ihello_world.creturns an error:You can only use kernel's EXPORTed symbol, ie. EXPORT_SYMBOL*(), when you write a module program because kernel links it on its own way. Try this instead.
pid_task(find_vpid(...), PIDTYPE_PID)
Great!
It works!
pid_task(find_vpid(pid), PIDTYPE_PID);
Quoted 6 lines
--
Regards,
Namhyung Kim
Thank you!
Ciao
Valentino from Sardegna!