[Users] find_task_by_pid macro removed from kernel

Matteo Pillon matteo.pillon at gmail.com
Mon Sep 18 04:40:11 EDT 2006


Hi all,

I had troubles getting lirc modules working on openvz kernel: lirc_dev
needs find_task_by_pid (modprobe lirc_dev returns an unresolved
symbol).
On a vanilla kernel this is defined as a macro:
 #define find_task_by_pid(nr)    find_task_by_pid_type(PIDTYPE_PID, nr)
On openvz kernel (I'm running 2.6.16-026test017), this macro has been
removed, I can only find:
 #define find_task_by_pid_all(nr)        \
                find_task_by_pid_type_all(PIDTYPE_PID, nr)
Why find_task_by_pid has been removed? In which ways
find_task_by_pid_all differs?

I tried replacing find_task_by_pid(ir->tpid) in lirc source-code with
find_task_by_pid_type(PIDTYPE_PID, ir->tpid), and it works flawlessly.
Does this have any drawback? If not, why not reincluding
find_task_by_pid into the kernel to keep compatibility?


Thanks for replies.

Bye.

-- 
 * Pillon Matteo


More information about the Users mailing list