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:
Hans Petter Selasky 2018-02-17 22:33:26 +00:00
parent b216e997af
commit 94b9710bc7

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);