]> git.saurik.com Git - apple/xnu.git/blobdiff - libkern/kxld/kxld_kext.h
xnu-3789.70.16.tar.gz
[apple/xnu.git] / libkern / kxld / kxld_kext.h
index f2b80c0f6d13e60b4fb1c98056dd9033a09bdefd..58b68bce33c54b92bd8d5ae7d51c0822bf9fe9bb 100644 (file)
@@ -28,7 +28,6 @@
 #ifndef _KXLD_KEXT_H_
 #define _KXLD_KEXT_H_
 
-#include <mach/machine.h>
 #include <sys/types.h>
 #if KERNEL
     #include <libkern/kxld_types.h>
@@ -73,12 +72,21 @@ kern_return_t kxld_kext_export_symbols(const KXLDKext *kext,
     struct kxld_dict *defined_cxx_symbols_by_value)
     __attribute__((nonnull(1), visibility("hidden")));
 
+void kxld_kext_get_vmsize_for_seg_by_name(const KXLDKext *kext,
+                                          const char *segname,
+                                          u_long *vmsize)
+__attribute__((nonnull, visibility("hidden")));
+
 void kxld_kext_get_vmsize(const KXLDKext *kext, 
     u_long *header_size, u_long *vmsize)
     __attribute__((nonnull, visibility("hidden")));
-    
+
+void kxld_kext_set_linked_object_size(KXLDKext *kext, u_long vmsize)
+__attribute__((nonnull, visibility("hidden")));
+
 kern_return_t kxld_kext_export_linked_object(const KXLDKext *kext,
-    u_char *linked_object, kxld_addr_t *kmod_info)
+                                             void *linked_object,
+                                             kxld_addr_t *kmod_info)
     __attribute__((nonnull, visibility("hidden")));
 
 /*******************************************************************************
@@ -90,10 +98,13 @@ kern_return_t kxld_kext_export_vtables(KXLDKext *kext,
     struct kxld_dict *vtables)
     __attribute__((nonnull, visibility("hidden")));
 
-kern_return_t kxld_kext_relocate(KXLDKext *kext, kxld_addr_t link_address,
-    struct kxld_dict *patched_vtables, const struct kxld_dict *defined_symbols,
-    const struct kxld_dict *obsolete_symbols, 
-    const struct kxld_dict *defined_cxx_symbols)
-    __attribute__((nonnull(1,3,4), visibility("hidden")));
+kern_return_t kxld_kext_relocate(KXLDKext *kext,
+                                 kxld_addr_t link_address,
+                                 struct kxld_dict *patched_vtables,
+                                 const struct kxld_dict *defined_symbols,
+                                 const struct kxld_dict *obsolete_symbols,
+                                 const struct kxld_dict *defined_cxx_symbols)
+__attribute__((nonnull(1,3,4), visibility("hidden")));
+
 
 #endif /* _KXLD_KEXT_H_ */