MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_cpu_self

Function rt_cpu_self

src/cpu_mp.c:142–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 * @note This function has UP version and MP version.
141 */
142struct rt_cpu *rt_cpu_self(void)
143{
144 return &_cpus[rt_hw_cpu_id()];
145}
146
147/**
148 * @brief This fucntion will return the cpu object corresponding to index.

Callers 2

rt_cpus_lockFunction · 0.70
rt_cpus_unlockFunction · 0.70

Calls 1

rt_hw_cpu_idFunction · 0.50

Tested by

no test coverage detected