]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/sys/sys_domain.h
xnu-1699.26.8.tar.gz
[apple/xnu.git] / bsd / sys / sys_domain.h
index 6b8b01b7f574ff1bfa2d12ba9b0ce42f4873261d..981d9f10784653295dacda55a4a5650e66ae35b3 100644 (file)
@@ -96,8 +96,9 @@ struct ctl_cb {
        lck_mtx_t                               *mtx;
        struct socket                   *so;                                    /* controlling socket */
        struct kctl                             *kctl;                                  /* back pointer to controller */
        lck_mtx_t                               *mtx;
        struct socket                   *so;                                    /* controlling socket */
        struct kctl                             *kctl;                                  /* back pointer to controller */
-       u_int32_t                               unit;
        void                                    *userdata;
        void                                    *userdata;
+       u_int32_t                               unit;
+       u_int32_t                               usecount;
 };
 
 
 };
 
 
@@ -105,8 +106,8 @@ extern struct domain systemdomain;
 
 /* built in system domain protocols init function */
 __BEGIN_DECLS
 
 /* built in system domain protocols init function */
 __BEGIN_DECLS
-int kern_event_init(void);
-int kern_control_init(void);
+int kern_event_init(void) __attribute__((section("__TEXT, initcode")));
+int kern_control_init(void) __attribute__((section("__TEXT, initcode")));
 __END_DECLS
 
 #endif /* KERNEL_PRIVATE */
 __END_DECLS
 
 #endif /* KERNEL_PRIVATE */