]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/mach/host_special_ports.h
xnu-7195.101.1.tar.gz
[apple/xnu.git] / osfmk / mach / host_special_ports.h
index f4632ed1386c08842ec52ff6789edcdf60c73392..75ba5e69dc1535dbf3db9b8b8c1901fc1b7e0517 100644 (file)
 #define HOST_RESOURCE_NOTIFY_PORT       (20 + HOST_MAX_SPECIAL_KERNEL_PORT)
 #define HOST_CLOSURED_PORT              (21 + HOST_MAX_SPECIAL_KERNEL_PORT)
 #define HOST_SYSPOLICYD_PORT            (22 + HOST_MAX_SPECIAL_KERNEL_PORT)
 #define HOST_RESOURCE_NOTIFY_PORT       (20 + HOST_MAX_SPECIAL_KERNEL_PORT)
 #define HOST_CLOSURED_PORT              (21 + HOST_MAX_SPECIAL_KERNEL_PORT)
 #define HOST_SYSPOLICYD_PORT            (22 + HOST_MAX_SPECIAL_KERNEL_PORT)
+#define HOST_FILECOORDINATIOND_PORT     (23 + HOST_MAX_SPECIAL_KERNEL_PORT)
+#define HOST_FAIRPLAYD_PORT             (24 + HOST_MAX_SPECIAL_KERNEL_PORT)
+#define HOST_IOCOMPRESSIONSTATS_PORT    (25 + HOST_MAX_SPECIAL_KERNEL_PORT)
 
 
-#define HOST_MAX_SPECIAL_PORT           HOST_SYSPOLICYD_PORT
-/* MAX = last since rdar://35861175 */
+#define HOST_MAX_SPECIAL_PORT           HOST_IOCOMPRESSIONSTATS_PORT
+/* MAX = last since rdar://59872249 */
 
 /* obsolete name */
 #define HOST_CHUD_PORT HOST_LAUNCHCTL_PORT
 
 /* obsolete name */
 #define HOST_CHUD_PORT HOST_LAUNCHCTL_PORT
 #define host_set_syspolicyd_port(host, port)    \
        (host_set_special_port((host), HOST_SYSPOLICYD_PORT, (port)))
 
 #define host_set_syspolicyd_port(host, port)    \
        (host_set_special_port((host), HOST_SYSPOLICYD_PORT, (port)))
 
+#define host_get_filecoordinationd_port(host, port)     \
+       (host_get_special_port((host),                  \
+       HOST_LOCAL_NODE, HOST_FILECOORDINATIOND_PORT, (port)))
+#define host_set_filecoordinationd_port(host, port)     \
+       (host_set_special_port((host), HOST_FILECOORDINATIOND_PORT, (port)))
+
+#define host_get_fairplayd_port(host, port)     \
+       (host_get_special_port((host),                  \
+       HOST_LOCAL_NODE, HOST_FAIRPLAYD_PORT, (port)))
+#define host_set_fairplayd_port(host, port)     \
+       (host_set_special_port((host), HOST_FAIRPLAYD_PORT, (port)))
+
+#define host_get_iocompressionstats_port(host, port)     \
+       (host_get_special_port((host),                  \
+       HOST_LOCAL_NODE, HOST_IOCOMPRESSIONSTATS_PORT, (port)))
+#define host_set_iocompressionstats_port(host, port)     \
+       (host_set_special_port((host), HOST_IOCOMPRESSIONSTATS_PORT, (port)))
+
+
 /* HOST_RESOURCE_NOTIFY_PORT doesn't #defines these conveniences.
  *  All lookups go through send_resource_violation()
  */
 /* HOST_RESOURCE_NOTIFY_PORT doesn't #defines these conveniences.
  *  All lookups go through send_resource_violation()
  */