aboutsummaryrefslogtreecommitdiff
path: root/include/mach/gnumach.defs
diff options
context:
space:
mode:
Diffstat (limited to 'include/mach/gnumach.defs')
-rw-r--r--include/mach/gnumach.defs8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mach/gnumach.defs b/include/mach/gnumach.defs
index 7ecf74d3..f13e866b 100644
--- a/include/mach/gnumach.defs
+++ b/include/mach/gnumach.defs
@@ -215,3 +215,11 @@ routine vm_pages_phys(
simpleroutine thread_set_name(
thread : thread_t;
name : kernel_debug_name_t);
+
+/*
+ * Get the name of thread THREAD as set by thread_set_name. Will return
+ * the name of the task if no THREAD name is set.
+ */
+routine thread_get_name(
+ thread : thread_t;
+ out name : kernel_debug_name_t);