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

Function spin_lock

components/drivers/block/blk_dev.h:33–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31#define letter_name(n) ('a' + (n) / ((n) >= 26 ? (26 * 2) : 1)), ((n) >= 26 ? 'a' + (n) % 26 : '\0')
32
33rt_inline void spin_lock(struct rt_spinlock *spinlock)
34{
35 rt_hw_spin_lock(&spinlock->lock);
36}
37
38rt_inline void spin_unlock(struct rt_spinlock *spinlock)
39{

Callers 4

blk_controlFunction · 0.70
disk_add_blk_devFunction · 0.70
disk_remove_blk_devFunction · 0.70

Calls 1

rt_hw_spin_lockFunction · 0.50

Tested by

no test coverage detected