]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/libkern/OSKextLibPrivate.h
xnu-4570.1.46.tar.gz
[apple/xnu.git] / libkern / libkern / OSKextLibPrivate.h
index 4ae4b98060aee14ebc2b3cd666ec23bb2a91484a..fd08744ed58277a2cf31f2310931134d716a8774 100644 (file)
@@ -29,6 +29,7 @@
 #ifndef _LIBKERN_OSKEXTLIBPRIVATE_H
 #define _LIBKERN_OSKEXTLIBPRIVATE_H
 
+
 #include <sys/cdefs.h>
 #include <uuid/uuid.h>
 
@@ -123,6 +124,7 @@ typedef uint8_t OSKextExcludeLevel;
 *   kOSKernelResourceKey
 *********************************************************************/
 #define kOSBundleMachOHeadersKey                "OSBundleMachOHeaders"
+#define kOSBundleLogStringsKey                  "OSBundleLogStrings"
 #define kOSBundleCPUTypeKey                     "OSBundleCPUType"
 #define kOSBundleCPUSubtypeKey                  "OSBundleCPUSubtype"
 #define kOSBundlePathKey                        "OSBundlePath"
@@ -133,6 +135,8 @@ typedef uint8_t OSKextExcludeLevel;
 #define kOSBundleLoadTagKey                     "OSBundleLoadTag"
 #define kOSBundleLoadAddressKey                 "OSBundleLoadAddress"
 #define kOSBundleLoadSizeKey                    "OSBundleLoadSize"
+#define kOSBundleExecLoadAddressKey             "OSBundleExecLoadAddress"
+#define kOSBundleExecLoadSizeKey                "OSBundleExecLoadSize"
 #define kOSBundleWiredSizeKey                   "OSBundleWiredSize"
 #define kOSBundleDependenciesKey                "OSBundleDependencies"
 #define kOSBundleRetainCountKey                 "OSBundleRetainCount"
@@ -899,6 +903,15 @@ typedef struct _loaded_kext_summary_header {
  */
 extern OSKextLoadedKextSummaryHeader * gLoadedKextSummaries;
 
+/*!
+ * @var gLoadedKextSummariesTimestamp
+ *
+ * @abstract This will be set to mach_absolute_time() around updates to
+ * gLoadedKextSummaries.  Ie. immediately before gLoadedKextSummaries is set to
+ * zero, and immediately after it is set to a new value.
+ */
+extern uint64_t gLoadedKextSummariesTimestamp;
+
 /*!
  * @function OSKextLoadedKextSummariesUpdated
  * @abstract Called when gLoadedKextSummaries has been updated.
@@ -913,9 +926,14 @@ void OSKextLoadedKextSummariesUpdated(void);
 #ifdef XNU_KERNEL_PRIVATE
 
 extern const vm_allocation_site_t * OSKextGetAllocationSiteForCaller(uintptr_t address);
-extern uint32_t                     OSKextGetKmodIDForSite(vm_allocation_site_t * site);
+extern uint32_t                     OSKextGetKmodIDForSite(const vm_allocation_site_t * site,
+                                                           char * name, vm_size_t namelen);
 extern void                         OSKextFreeSite(vm_allocation_site_t * site);
 
+#if CONFIG_IMAGEBOOT
+extern int OSKextGetUUIDForName(const char *, uuid_t);
+#endif
+
 #endif /* XNU_KERNEL_PRIVATE */
 
 __END_DECLS