summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-13 21:55:15 +0000
committerjulian <julian@FreeBSD.org>2001-09-13 21:55:15 +0000
commitcbf26dae08ff06e0429b2051a7f0e11da4ad5fcb (patch)
tree2d4352d0dc7d4f2e89e0292f4422b61a7e8e8688
parentaa094c1b930f7056fe73997f6128a518ebc525ed (diff)
downloadFreeBSD-src-cbf26dae08ff06e0429b2051a7f0e11da4ad5fcb.zip
FreeBSD-src-cbf26dae08ff06e0429b2051a7f0e11da4ad5fcb.tar.gz
shift a few flags around.. (physically, not logically)
-rw-r--r--sys/sys/proc.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index dd53274..8bda1fd 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -274,7 +274,6 @@ struct thread {
struct vm_object *td_kstack_obj;/* (a) kstack object. */
vm_offset_t td_kstack; /* kstack mapped address */
};
-#define TDF_ONRUNQ 0x00000001 /* This KE is on a run queue */
/*
* The schedulable entity that can be given a context to run.
@@ -452,7 +451,6 @@ struct proc {
#define SMTX 7 /* Blocked on a mutex. */
/* These flags are kept in p_flag. */
-/* In a KSE world some go to a thread or a KSE (*)*/
#define P_ADVLOCK 0x00001 /* Process may hold a POSIX advisory lock. */
#define P_CONTROLT 0x00002 /* Has a controlling terminal. */
#define P_KTHREAD 0x00004 /* Kernel thread. (*)*/
@@ -467,11 +465,9 @@ struct proc {
#define P_KSES 0x08000 /* Process is using KSEs. */
/* Should be moved to machine-dependent areas. */
-
#define P_BUFEXHAUST 0x100000 /* Dirty buffers flush is in progress. */
#define P_COWINPROGRESS 0x400000 /* Snapshot copy-on-write in progress. */
-
#define P_JAILED 0x1000000 /* Process is in jail. */
#define P_OLDMASK 0x2000000 /* Need to restore mask after suspend. */
#define P_ALTSTACK 0x4000000 /* Have alternate signal stack. */
@@ -484,18 +480,21 @@ struct proc {
#define PS_SWAPINREQ 0x00100 /* Swapin request due to wakeup. */
#define PS_SWAPPING 0x00200 /* Process is being swapped. */
+/* flags kept in td_flags */
+#define TDF_ONRUNQ 0x00001 /* This KE is on a run queue */
#define TDF_SINTR 0x00008 /* Sleep is interruptible. */
#define TDF_TIMEOUT 0x00010 /* Timing out during sleep. */
#define TDF_SELECT 0x00040 /* Selecting; wakeup/waiting danger. */
#define TDF_CVWAITQ 0x00080 /* Proces is on a cv_waitq (not slpq). */
+#define TDF_TIMOFAIL 0x01000 /* Timeout from sleep after we were awake. */
#define TDF_DEADLKTREAT 0x800000 /* Lock aquisition - deadlock treatment. */
+/* flags kept in ke_flags */
+#define KEF_ONRUNQ 0x00001 /* This KE is on a run queue */
#define KEF_OWEUPC 0x00002 /* Owe process an addupc() call at next ast. */
#define KEF_ASTPENDING 0x00400 /* KSE has a pending ast. */
#define KEF_NEEDRESCHED 0x00800 /* Process needs to yield. */
-#define TDF_TIMOFAIL 0x01000 /* Timeout from sleep after we were awake. */
-#define KEF_ONRUNQ 0x00000001 /* This KE is on a run queue */
#define P_MAGIC 0xbeefface
OpenPOWER on IntegriCloud