lkml.org 
[lkml]   [2010]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: find_task_by_pid() problem
2010/8/10 Namhyung Kim <namhyung@gmail.com>:
>> I'm using the routine find_task_by_vpid () linux / sched.h (the oldest
>> find_task_by_pid() don't exist), but when I try to compile the file I
>> hello_world.c returns 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);

> --
> Regards,
> Namhyung Kim
>
>
>

Thank you!
Ciao
Valentino from Sardegna!


\
 
 \ /
  Last update: 2010-08-10 10:43    [W:2.080 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site