31#if (CH_CFG_USE_REGISTRY == TRUE) || defined(__DOXYGEN__)
97#if (CH_CFG_SMP_MODE == TRUE) || defined(__DOXYGEN__)
98#define REG_HEADER(oip) (&ch_system.reglist.queue)
100#define REG_HEADER(oip) (&(oip)->reglist.queue)
109#define REG_REMOVE(tp) (void) ch_queue_dequeue(&(tp)->rqueue)
118#define REG_INSERT(oip, tp) ch_queue_insert(REG_HEADER(oip), &(tp)->rqueue)
167#if CH_CFG_USE_REGISTRY == TRUE
187#if CH_CFG_USE_REGISTRY == TRUE
207#if CH_CFG_USE_REGISTRY == TRUE
static void ch_queue_init(ch_queue_t *qp)
Queue initialization.
struct ch_registry registry_t
Type of a registry structure.
port_stkalign_t stkalign_t
struct ch_thread thread_t
Type of a thread structure.
ROMCONST chdebug_t ch_debug
thread_t * chRegFirstThread(void)
Returns the first thread in the system.
thread_t * chRegNextThread(thread_t *tp)
Returns the thread next to the specified one.
thread_t * chRegFindThreadByName(const char *name)
Retrieves a thread pointer by name.
static const char * chRegGetThreadNameX(thread_t *tp)
Returns the name of the specified thread.
static void __reg_object_init(registry_t *rp)
Initializes a registry.
static void chRegSetThreadNameX(thread_t *tp, const char *name)
Changes the name of the specified thread.
static void chRegSetThreadName(const char *name)
Sets the current thread name.
thread_t * chRegFindThreadByWorkingArea(stkalign_t *wa)
Confirms that a working area is being used by some active thread.
thread_t * chRegFindThreadByPointer(thread_t *tp)
Confirms that a pointer is a valid thread pointer.
#define __sch_get_currthread()
Current thread pointer get macro.
ch_queue_t queue
Registry queue header.
const char * name
Thread name or NULL.
ChibiOS/RT memory signature record.
uint8_t off_flags
Offset of flags field.
uint8_t off_inst_vtlist
Offset of vtlist field.
uint8_t off_sys_rfcu
Offset of rfcu field.
uint8_t off_inst_rlist_current
Offset of rlist.current field.
uint8_t off_sys_reglist
Offset of reglist field.
uint8_t off_inst_core_id
Offset of core_id field.
uint8_t off_newer
Offset of newer field.
uint8_t off_inst_rlist
Offset of rlist field.
uint8_t intctxsize
Size of a port_intctx.
uint8_t off_sys_state
Offset of state field.
uint8_t intervalsize
Size of a sysinterval_t.
uint8_t off_preempt
Offset of ticks field.
uint8_t off_older
Offset of older field.
uint8_t off_refs
Offset of refs field.
uint8_t off_time
Offset of time field.
char identifier[4]
Always set to "main".
uint8_t timesize
Size of a systime_t.
uint8_t instancesnum
Number of instances.
uint8_t off_stklimit
Offset of stklimit field.
uint8_t size
Size of this structure.
uint8_t off_sys_reserved[4]
uint8_t ptrsize
Size of a pointer.
uint8_t off_name
Offset of name field.
uint8_t off_state
Offset of state field.
uint8_t off_sys_instances
Offset of instances array field.
uint8_t off_inst_rfcu
Offset of rfcu field.
uint8_t zero
Must be zero.
uint16_t version
Encoded ChibiOS/RT version.
uint8_t threadsize
Size of a thread_t.
uint8_t off_inst_reglist
Offset of reglist field.
uint8_t off_prio
Offset of prio field.
uint8_t off_ctx
Offset of ctx field.