+/*
+ * This returns an unique 64bit id of a given process.
+ * Caller needs to hold proper reference on the
+ * passed in process strucutre.
+ */
+extern uint64_t proc_uniqueid(proc_t);
+
+/* unique 64bit id for process's original parent */
+extern uint64_t proc_puniqueid(proc_t);
+
+extern void proc_set_responsible_pid(proc_t target_proc, pid_t responsible_pid);
+
+/* return 1 if process is forcing case-sensitive HFS+ access, 0 for default */
+extern int proc_is_forcing_hfs_case_sensitivity(proc_t);
+
+/*!
+ * @function proc_exitstatus
+ * @abstract KPI to determine a process's exit status.
+ * @discussion This function is not safe to call if the process could be
+ * concurrently stopped or started, but it can be called from a
+ * mpo_proc_notify_exit callback.
+ * @param p The process to be queried.
+ * @return Value in the same format as wait()'s output parameter.
+ */
+extern int proc_exitstatus(proc_t p);
+
+#endif /* KERNEL_PRIVATE */
+
+#ifdef XNU_KERNEL_PRIVATE
+
+extern void proc_getexecutableuuid(proc_t, unsigned char *, unsigned long);
+extern int proc_get_originatorbgstate(uint32_t *is_backgrounded);
+
+/* Kernel interface to get the uuid of the originator of the work.*/
+extern int proc_pidoriginatoruuid(uuid_t uuid_buf, uint32_t buffersize);
+
+extern uint64_t proc_was_throttled(proc_t);
+extern uint64_t proc_did_throttle(proc_t);
+
+extern void proc_coalitionids(proc_t, uint64_t[COALITION_NUM_TYPES]);
+
+#ifdef CONFIG_32BIT_TELEMETRY
+extern void proc_log_32bit_telemetry(proc_t p);
+#endif /* CONFIG_32BIT_TELEMETRY */
+extern uint64_t get_current_unique_pid(void);
+#endif /* XNU_KERNEL_PRIVATE*/
+
+#ifdef KERNEL_PRIVATE
+/* If buf argument is NULL, the necessary length to allocate will be set in buflen */
+extern int proc_selfexecutableargs(uint8_t *buf, size_t *buflen);
+extern off_t proc_getexecutableoffset(proc_t p);
+extern vnode_t proc_getexecutablevnode(proc_t); /* Returned with iocount, use vnode_put() to drop */
+extern int networking_memstatus_callout(proc_t p, uint32_t);
+
+#define SYSCALL_MASK_UNIX 0
+extern size_t proc_get_syscall_filter_mask_size(int which);
+extern int proc_set_syscall_filter_mask(proc_t p, int which, unsigned char *maskptr, size_t masklen);
+#endif /* KERNEL_PRIVATE */
+
+__END_DECLS
+
+#endif /* KERNEL */
+
+#ifdef PRIVATE
+
+/* Values for pid_shutdown_sockets */
+#define SHUTDOWN_SOCKET_LEVEL_DISCONNECT_SVC 0x00000001
+#define SHUTDOWN_SOCKET_LEVEL_DISCONNECT_ALL 0x00000002
+
+#ifdef KERNEL
+#define SHUTDOWN_SOCKET_LEVEL_DISCONNECT_INTERNAL 0x10000000
+#define SHUTDOWN_SOCKET_LEVEL_NECP 0x20000000
+#define SHUTDOWN_SOCKET_LEVEL_CONTENT_FILTER 0x40000000