31 #if (CH_CFG_USE_REGISTRY == TRUE) || defined(__DOXYGEN__) 83 #define REG_REMOVE(tp) { \ 84 (tp)->older->newer = (tp)->newer; \ 85 (tp)->newer->older = (tp)->older; \ 94 #define REG_INSERT(tp) { \ 95 (tp)->newer = (thread_t *)&ch.rlist; \ 96 (tp)->older = ch.rlist.older; \ 97 (tp)->older->newer = (tp); \ 98 ch.rlist.older = (tp); \ 135 #if CH_CFG_USE_REGISTRY == TRUE 155 #if CH_CFG_USE_REGISTRY == TRUE 175 #if CH_CFG_USE_REGISTRY == TRUE uint8_t off_name
Offset of name field.
uint8_t off_prio
Offset of prio field.
thread_t * chRegFindThreadByName(const char *name)
Retrieves a thread pointer by name.
uint8_t off_flags
Offset of flags field.
static const char * chRegGetThreadNameX(thread_t *tp)
Returns the name of the specified thread.
thread_t * chRegFindThreadByPointer(thread_t *tp)
Confirms that a pointer is a valid thread pointer.
uint16_t version
Encoded ChibiOS/RT version.
uint8_t off_newer
Offset of newer field.
uint8_t off_preempt
Offset of preempt field.
uint8_t off_state
Offset of state field.
thread_t * chRegFindThreadByWorkingArea(stkalign_t *wa)
Confirms that a working area is being used by some active thread.
uint8_t zero
Must be zero.
const char * name
Thread name or NULL.
ChibiOS/RT memory signature record.
thread_t * chRegFirstThread(void)
Returns the first thread in the system.
uint8_t off_older
Offset of older field.
uint8_t ptrsize
Size of a pointer.
ready_list_t rlist
Ready list header.
ch_system_t ch
System data structures.
uint8_t off_time
Offset of time field.
static void chRegSetThreadNameX(thread_t *tp, const char *name)
Changes the name of the specified thread.
uint8_t timesize
Size of a systime_t.
uint8_t threadsize
Size of a thread_t.
thread_t * chRegNextThread(thread_t *tp)
Returns the thread next to the specified one.
uint8_t off_stklimit
Offset of stklimit field.
uint8_t off_refs
Offset of refs field.
uint8_t off_ctx
Offset of ctx field.
static void chRegSetThreadName(const char *name)
Sets the current thread name.
uint8_t size
Size of this structure.
Structure representing a thread.