From fa1229f9776c7ecc99baa187e0b485ebdbfdd78c Mon Sep 17 00:00:00 2001 From: Glenn Elliott Date: Thu, 13 Dec 2012 18:39:27 -0500 Subject: Allow klmirqd threads to be given names. --- include/litmus/litmus_softirq.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/litmus/litmus_softirq.h b/include/litmus/litmus_softirq.h index 52e3f7e74ab1..cfef08187464 100644 --- a/include/litmus/litmus_softirq.h +++ b/include/litmus/litmus_softirq.h @@ -57,8 +57,13 @@ typedef struct data will be initialized. cpu == -1 for no affinity + + provide a name at most 31 (32, + null terminator) characters long. + name == NULL for a default name. (all names are appended with + base-CPU affinity) */ -int launch_klmirqd_thread(int cpu, klmirqd_callback_t* cb); +#define MAX_KLMIRQD_NAME_LEN 31 +int launch_klmirqd_thread(char* name, int cpu, klmirqd_callback_t* cb); /* Flushes all pending work out to the OS for regular -- cgit v1.2.2