]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/ledger.h
xnu-4903.231.4.tar.gz
[apple/xnu.git] / osfmk / kern / ledger.h
index 78eb4f8484f005996836be1cb642d33281273ca7..55faa7f5286d1e17e952710f71048187772b46c6 100644 (file)
 
 #include <mach/mach_types.h>   /* ledger_t */
 
+#ifdef MACH_KERNEL_PRIVATE
+#include <os/refcnt.h>
+#endif /* MACH_KERNEL_PRIVATE */
+
 #define        LEDGER_INFO             0
 #define        LEDGER_ENTRY_INFO       1
 #define        LEDGER_TEMPLATE_INFO    2
@@ -92,7 +96,7 @@ struct ledger_entry {
 
 struct ledger {
        uint64_t                l_id;
-       int32_t                 l_refs;
+       struct os_refcnt        l_refs;
        int32_t                 l_size;
        struct ledger_template *l_template;
        struct ledger_entry     l_entries[0] __attribute__((aligned(8)));