]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/wrappers/coalition.c
xnu-7195.81.3.tar.gz
[apple/xnu.git] / libsyscall / wrappers / coalition.c
index 33da1103d43d58fbd86a0f3f872e5a48bf5df897..6c183a9f78da5ccd191137bc0738f55b7d6d878d 100644 (file)
@@ -30,6 +30,7 @@
 /* Syscall entry points */
 int __coalition(uint32_t operation, uint64_t *cid, uint32_t flags);
 int __coalition_info(uint32_t operation, uint64_t *cid, void *buffer, size_t *bufsize);
+int __coalition_ledger(uint32_t operation, uint64_t *cid, void *buffer, size_t *bufsize);
 
 int
 coalition_create(uint64_t *cid_out, uint32_t flags)
@@ -67,3 +68,10 @@ coalition_info_set_efficiency(uint64_t cid, uint64_t flags)
        size_t size = sizeof(flags);
        return __coalition_info(COALITION_INFO_SET_EFFICIENCY, &cid, (void *)&flags, &size);
 }
+
+int
+coalition_ledger_set_logical_writes_limit(uint64_t cid, int64_t limit)
+{
+       size_t size = sizeof(limit);
+       return __coalition_ledger(COALITION_LEDGER_SET_LOGICAL_WRITES_LIMIT, &cid, (void *)&limit, &size);
+}