]> git.saurik.com Git - apple/xnu.git/blobdiff - osfmk/kern/ipc_tt.h
xnu-6153.11.26.tar.gz
[apple/xnu.git] / osfmk / kern / ipc_tt.h
index ce6d746e320f5214861774272f47cac7f65cdcc3..5ad86b9992dd14eb7991d169f49f187ef0d21f22 100644 (file)
@@ -175,8 +175,15 @@ extern thread_t convert_port_to_thread(
 extern thread_inspect_t convert_port_to_thread_inspect(
        ipc_port_t              port);
 
+__options_decl(port_to_thread_options_t, uint32_t, {
+       PORT_TO_THREAD_NONE               = 0x0000,
+       PORT_TO_THREAD_IN_CURRENT_TASK    = 0x0001,
+       PORT_TO_THREAD_NOT_CURRENT_THREAD = 0x0002,
+});
+
 extern thread_t port_name_to_thread(
-       mach_port_name_t        port_name);
+       mach_port_name_t            port_name,
+       port_to_thread_options_t    options);
 
 /* Deallocate a space ref produced by convert_port_to_space */
 extern void space_deallocate(