]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/Kernel/IOServicePrivate.h
xnu-1699.22.73.tar.gz
[apple/xnu.git] / iokit / Kernel / IOServicePrivate.h
index 641dc2a7fa8012814d951bc4664218c9d03bb742..873d47660d21ebf480c62fbb314f3a5411c21a54 100644 (file)
@@ -55,6 +55,8 @@ enum {
     kIOServiceConfigState      = 0x04000000,
     kIOServiceTermPhase2State  = 0x01000000,
     kIOServiceTermPhase3State  = 0x00800000,
+    kIOServiceTermPhase1State  = 0x00400000,
+       kIOServiceTerm1WaiterState  = 0x00200000
 };
 
 // options for terminate()
@@ -84,7 +86,8 @@ public:
     OSOrderedSet *                     whence;
 
     OSDictionary *                     matching;
-    IOServiceNotificationHandler       handler;
+    IOServiceMatchingNotificationHandler handler;
+    IOServiceNotificationHandler       compatHandler;
     void *                             target;
     void *                             ref;
     SInt32                             priority;
@@ -130,15 +133,11 @@ public:
     virtual void free();
 
     static void configThread( void );
-    static void main( _IOConfigThread * self );
+    static void main( void * arg, wait_result_t result );
 };
 
 enum {
-#ifdef LESS_THREAD_CREATE
-    kMaxConfigThreads  = 4,
-#else
-    kMaxConfigThreads  = 32,
-#endif
+       kMaxConfigThreads       = CONFIG_MAX_THREADS,
 };
 
 enum {
@@ -170,6 +169,7 @@ class IOResources : public IOService
 
 public:
     static IOService * resources( void );
+    virtual bool init( OSDictionary * dictionary = 0 );
     virtual IOWorkLoop * getWorkLoop( ) const;
     virtual bool matchPropertyTable( OSDictionary * table );
     virtual IOReturn setProperties( OSObject * properties );
@@ -198,6 +198,7 @@ public:
 
 extern const OSSymbol * gIOConsoleUsersKey;
 extern const OSSymbol * gIOConsoleSessionUIDKey;
+extern const OSSymbol *        gIOConsoleSessionAuditIDKey;
 extern const OSSymbol * gIOConsoleSessionOnConsoleKey;
 extern const OSSymbol * gIOConsoleSessionSecureInputPIDKey;