From a40012115277aeff07ff92abab652b996be3c9cf Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Thu, 11 Jul 2024 23:36:39 +0100 Subject: Add thread_get_name RPC to get the name of a thread. Message-ID: <6qm4fdtthi5nrmmleum7z2xemxz77adohed454eaeuzlmvfx4d@l3pyff4tqwry> --- include/mach/gnumach.defs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') 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); -- cgit v1.2.3