aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2018-06-05 15:40:09 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2018-06-05 15:40:09 +0000
commit5a1d03bb7ccaecf21a526fbd404b4aa21e94ba0c (patch)
tree600d51db69415359dadc295bc68f698f742c50c4
parent747d9a816519f32b01ed9abc6fb6166f1ba21ba4 (diff)
downloadsrc-5a1d03bb7ccaecf21a526fbd404b4aa21e94ba0c.tar.gz
src-5a1d03bb7ccaecf21a526fbd404b4aa21e94ba0c.zip
Implement the task_pid_vnr() function macro in the LinuxKPI.
Submitted by: Johannes Lundberg <johalun0@gmail.com> MFC after: 1 week Sponsored by: Mellanox Technologies Sponsored by: Limelight Networks
Notes
Notes: svn path=/head/; revision=334661
-rw-r--r--sys/compat/linuxkpi/common/include/linux/sched.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/sched.h b/sys/compat/linuxkpi/common/include/linux/sched.h
index 24a733c8eb28..7ba4df34247f 100644
--- a/sys/compat/linuxkpi/common/include/linux/sched.h
+++ b/sys/compat/linuxkpi/common/include/linux/sched.h
@@ -89,6 +89,7 @@ struct task_struct {
#define task_pid_group_leader(task) (task)->task_thread->td_proc->p_pid
#define task_pid(task) ((task)->pid)
#define task_pid_nr(task) ((task)->pid)
+#define task_pid_vnr(task) ((task)->pid)
#define get_pid(x) (x)
#define put_pid(x) do { } while (0)
#define current_euid() (curthread->td_ucred->cr_uid)