From 10b25803ce879ee6ac832b884bfdabc79769486a Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Mon, 12 Feb 2024 01:26:34 -0500 Subject: Add thread_set_name RPC. Like task_set_name, we use the same size as the task name and will inherit the task name, whenever it exists. This will be used to implement pthread_setname_np. Message-ID: <20240212062634.1082207-2-flaviocruz@gmail.com> --- 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 6252de96..7ecf74d3 100644 --- a/include/mach/gnumach.defs +++ b/include/mach/gnumach.defs @@ -207,3 +207,11 @@ routine vm_pages_phys( vaddr : vm_address_t; size : vm_size_t; out pages : rpc_phys_addr_array_t); + +/* + * Set the name of thread THREAD to NAME. This is a debugging aid. + * NAME will be used in error messages printed by the kernel. + */ +simpleroutine thread_set_name( + thread : thread_t; + name : kernel_debug_name_t); -- cgit v1.2.3