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

Function rt_ref_init

components/utilities/libadt/ref/ref.h:28–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#define RT_REF_INIT(n) { .refcount = n, }
27
28rt_inline void rt_ref_init(struct rt_ref *r)
29{
30 rt_atomic_store(&r->refcount, 1);
31}
32
33rt_inline unsigned int rt_ref_read(struct rt_ref *r)
34{

Callers 7

rt_pci_ep_registerFunction · 0.85
dm_power_domain_initFunction · 0.85
fdt_unflatten_singleFunction · 0.85
rt_ofw_append_childFunction · 0.85
rt_clk_registerFunction · 0.85
gicv3_its_irq_alloc_msiFunction · 0.85
rt_regulator_registerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected