Skip to contentSkip to conversation

sched.h: increment TASK_COMM_LEN to 20 bytes

PATCH New Luben Tuikov 1 participant 1 message Jun 23, 2006 Scheduler

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sched.h: increment TASK_COMM_LEN to 20 bytes

Lets use 19+1 chars. This helps display properly kernel threads (e.g. SATA translation threads) which bear the address of the STP/SATA bridge where the SATA disk is connected. Those are 16+1 chars long. Currently (15+1) the last character is not displayed as it is used by the '\0'.

The array is 4 byte aligned so we add another 4 bytes to it.

---
 include/linux/sched.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/sched.h +1 -1
index 18f12cb..3fc11bc 100644
@@ -154,7 +154,7 @@ #define set_current_state(state_value)
        set_mb(current->state, (state_value))
 
 /* Task command name length */
-#define TASK_COMM_LEN 16
+#define TASK_COMM_LEN 20
 
 /*
  * Scheduling policies
Signature · 1 line
1.4.0.g470d