Implement get_task_pid() function macro in the LinuxKPI.

MFC after:	1 week
Submitted by:	Johannes Lundberg <johalun0@gmail.com>
Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2018-02-17 22:33:26 +00:00
parent 0a4cda7bf6
commit c36c8dcaaa

View File

@ -58,6 +58,11 @@ enum pid_type {
__ts; \
})
#define get_task_pid(task, type) ({ \
CTASSERT((type) == PIDTYPE_PID); \
(task)->task_thread->td_tid; \
})
struct task_struct;
extern struct task_struct *linux_pid_task(pid_t);
extern struct task_struct *linux_get_pid_task(pid_t);