Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/linux #define current...
details: https://anonhg.NetBSD.org/src/rev/516a1538119b
branches: riastradh-drm2
changeset: 788062:516a1538119b
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:03:32 2013 +0000
description:
#define current curproc, and add task_pid_nr, in <linux/sched.h>.
diffstat:
sys/external/bsd/drm2/include/linux/sched.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 5a1a1b978f76 -r 516a1538119b sys/external/bsd/drm2/include/linux/sched.h
--- a/sys/external/bsd/drm2/include/linux/sched.h Wed Jul 24 02:03:16 2013 +0000
+++ b/sys/external/bsd/drm2/include/linux/sched.h Wed Jul 24 02:03:32 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sched.h,v 1.1.2.1 2013/07/24 00:33:12 riastradh Exp $ */
+/* $NetBSD: sched.h,v 1.1.2.2 2013/07/24 02:03:32 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -32,4 +32,14 @@
#ifndef _LINUX_SCHED_H_
#define _LINUX_SCHED_H_
+#include <sys/proc.h>
+
+#define current curproc
+
+static inline pid_t
+task_pid_nr(struct proc *p)
+{
+ return p->p_pid;
+}
+
#endif /* _LINUX_SCHED_H_ */
Home |
Main Index |
Thread Index |
Old Index