]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/proc_info.h
xnu-2050.7.9.tar.gz
[apple/xnu.git] / bsd / sys / proc_info.h
index 67842664db5f0eee98a000a23b8c2eddfb0759d9..381aef8f3c65f9ddc45461d97c82e22287299e4b 100644 (file)
@@ -118,6 +118,8 @@ struct proc_bsdshortinfo {
 #ifdef  PRIVATE
 #define PROC_FLAG_DARWINBG     0x8000  /* process in darwin background */
 #define PROC_FLAG_EXT_DARWINBG 0x10000 /* process in darwin background - external enforcement */
+#define PROC_FLAG_IOS_APPLEDAEMON      0x20000 /* Process is apple daemon  */
+#define PROC_FLAG_DELAYIDLESLEEP       0x40000 /* Process is marked to delay idle sleep on disk IO */
 #endif
 
 
@@ -642,6 +644,9 @@ struct proc_fileportinfo {
 #define PROC_PIDLISTFILEPORTS          14
 #define PROC_PIDLISTFILEPORTS_SIZE     (sizeof(struct proc_fileportinfo))
 
+#define PROC_PIDTHREADID64INFO         15
+#define PROC_PIDTHREADID64INFO_SIZE    (sizeof(struct proc_threadinfo))
+
 /* Flavors for proc_pidfdinfo */
 
 #define PROC_PIDFDVNODEINFO            1
@@ -691,6 +696,24 @@ struct proc_fileportinfo {
 
 #define PROC_SELFSET_VMRSRCOWNER       3
 
+#define PROC_SELFSET_DELAYIDLESLEEP    4
+
+/* used for proc_dirtycontrol */
+#define PROC_DIRTYCONTROL_TRACK         1
+#define PROC_DIRTYCONTROL_SET           2
+#define PROC_DIRTYCONTROL_GET           3
+
+/* proc_track_dirty() flags */
+#define PROC_DIRTY_TRACK                0x1
+#define PROC_DIRTY_ALLOW_IDLE_EXIT      0x2
+
+#define PROC_DIRTY_TRACK_MASK           (PROC_DIRTY_TRACK|PROC_DIRTY_ALLOW_IDLE_EXIT)
+
+/* proc_get_dirty() flags */
+#define PROC_DIRTY_TRACKED              0x1
+#define PROC_DIRTY_ALLOWS_IDLE_EXIT     0x2
+#define PROC_DIRTY_IS_DIRTY             0x4                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
+
 #ifdef XNU_KERNEL_PRIVATE
 #ifndef pshmnode
 struct pshmnode;