X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/d1ecb069dfe24481e4a83f44cb5217a2b06746d7..d26ffc64f583ab2d29df48f13518685602bc8832:/osfmk/kern/ipc_kobject.h diff --git a/osfmk/kern/ipc_kobject.h b/osfmk/kern/ipc_kobject.h index 9cf8ffb58..52431b60e 100644 --- a/osfmk/kern/ipc_kobject.h +++ b/osfmk/kern/ipc_kobject.h @@ -69,8 +69,10 @@ * Declarations for letting a port represent a kernel object. */ +#ifdef MACH_KERNEL_PRIVATE #include #include +#endif /* MACH_KERNEL_PRIVATE */ #ifndef _KERN_IPC_KOBJECT_H_ #define _KERN_IPC_KOBJECT_H_ @@ -114,7 +116,7 @@ typedef natural_t ipc_kobject_type_t; #define IKOT_LOCK_SET 24 #define IKOT_CLOCK 25 #define IKOT_CLOCK_CTRL 26 -#define IKOT_IOKIT_SPARE 27 +#define IKOT_IOKIT_IDENT 27 #define IKOT_NAMED_ENTRY 28 #define IKOT_IOKIT_CONNECT 29 #define IKOT_IOKIT_OBJECT 30 @@ -123,16 +125,23 @@ typedef natural_t ipc_kobject_type_t; #define IKOT_AU_SESSIONPORT 33 #define IKOT_FILEPORT 34 #define IKOT_LABELH 35 +#define IKOT_TASK_RESUME 36 +#define IKOT_VOUCHER 37 +#define IKOT_VOUCHER_ATTR_CONTROL 38 +#define IKOT_WORK_INTERVAL 39 + /* * Add new entries here and adjust IKOT_UNKNOWN. * Please keep ipc/ipc_object.c:ikot_print_array up to date. */ -#define IKOT_UNKNOWN 36 /* magic catchall */ +#define IKOT_UNKNOWN 40 /* magic catchall */ #define IKOT_MAX_TYPE (IKOT_UNKNOWN+1) /* # of IKOT_ types */ #define is_ipc_kobject(ikot) ((ikot) != IKOT_NONE) +#ifdef MACH_KERNEL_PRIVATE + /* * Define types of kernel objects that use page lists instead * of entry lists for copyin of out of line memory. @@ -140,7 +149,8 @@ typedef natural_t ipc_kobject_type_t; /* Dispatch a kernel server function */ extern ipc_kmsg_t ipc_kobject_server( - ipc_kmsg_t request); + ipc_kmsg_t request, + mach_msg_option_t option); /* Make a port represent a kernel object of the given type */ extern void ipc_kobject_set( @@ -159,6 +169,8 @@ extern void ipc_kobject_destroy( #define null_conversion(port) (port) +#endif /* MACH_KERNEL_PRIVATE */ + #endif /* KERNEL_PRIVATE */ #endif /* _KERN_IPC_KOBJECT_H_ */