Go to the documentation of this file.
31 #if (CH_CFG_USE_REGISTRY == TRUE) || defined(__DOXYGEN__)
80 #if (CH_CFG_SMP_MODE == TRUE) || defined(__DOXYGEN__)
81 #define REG_HEADER(oip) (&ch_system.reglist.queue)
83 #define REG_HEADER(oip) (&(oip)->reglist.queue)
92 #define REG_REMOVE(tp) (void) ch_queue_dequeue(&(tp)->rqueue)
101 #define REG_INSERT(oip, tp) ch_queue_insert(REG_HEADER(oip), &(tp)->rqueue)
150 #if CH_CFG_USE_REGISTRY == TRUE
170 #if CH_CFG_USE_REGISTRY == TRUE
190 #if CH_CFG_USE_REGISTRY == TRUE
uint8_t off_ctx
Offset of ctx field.
port_stkalign_t stkalign_t
thread_t * chRegFindThreadByName(const char *name)
Retrieves a thread pointer by name.
uint8_t off_name
Offset of name field.
uint8_t off_prio
Offset of prio field.
static const char * chRegGetThreadNameX(thread_t *tp)
Returns the name of the specified thread.
uint16_t version
Encoded ChibiOS/RT version.
thread_t * chRegFindThreadByPointer(thread_t *tp)
Confirms that a pointer is a valid thread pointer.
uint8_t off_newer
Offset of newer field.
uint8_t zero
Must be zero.
uint8_t off_flags
Offset of flags field.
#define __sch_get_currthread()
Current thread pointer get macro.
uint8_t off_preempt
Offset of preempt field.
const char * name
Thread name or NULL.
uint8_t off_older
Offset of older field.
uint8_t off_state
Offset of state field.
Structure representing a thread.
thread_t * chRegFindThreadByWorkingArea(stkalign_t *wa)
Confirms that a working area is being used by some active thread.
uint8_t off_time
Offset of time field.
#define ROMCONST
ROM constant modifier.
Type of a registry structure.
thread_t * chRegFirstThread(void)
Returns the first thread in the system.
static void ch_queue_init(ch_queue_t *qp)
Queue initialization.
uint8_t off_stklimit
Offset of stklimit field.
uint8_t off_refs
Offset of refs field.
uint8_t timesize
Size of a systime_t.
static void chRegSetThreadNameX(thread_t *tp, const char *name)
Changes the name of the specified thread.
ch_queue_t queue
Registry queue header.
uint8_t ptrsize
Size of a pointer.
uint8_t threadsize
Size of a thread_t.
thread_t * chRegNextThread(thread_t *tp)
Returns the thread next to the specified one.
static void __reg_object_init(registry_t *rp)
Initializes a registry.
static void chRegSetThreadName(const char *name)
Sets the current thread name.
ChibiOS/RT memory signature record.
uint8_t size
Size of this structure.