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

Function rt_dm_ida_free

components/drivers/core/dm.c:124–134  ·  view source on GitHub ↗

* @brief This function will release an id in an IDA object * * @param ida is the IDA object * * @param id is the id of IDA object */

Source from the content-addressed store, hash-verified

122 * @param id is the id of IDA object
123 */
124void rt_dm_ida_free(struct rt_dm_ida *ida, int id)
125{
126 RT_ASSERT(ida != RT_NULL);
127 RT_ASSERT(id >= 0);
128
129 rt_spin_lock(&ida->lock);
130
131 rt_bitmap_clear_bit(ida->map, id);
132
133 rt_spin_unlock(&ida->lock);
134}
135
136/**
137 * @brief This function will return the specified master id and device id of device.

Callers 12

scsi_sd_probeFunction · 0.85
scsi_sd_removeFunction · 0.85
scsi_cdrom_probeFunction · 0.85
scsi_cdrom_removeFunction · 0.85
rt_led_registerFunction · 0.85
rt_led_unregisterFunction · 0.85
blk.cFile · 0.85
disk_add_blk_devFunction · 0.85
disk_remove_blk_devFunction · 0.85

Calls 3

rt_bitmap_clear_bitFunction · 0.85
rt_spin_lockFunction · 0.50
rt_spin_unlockFunction · 0.50

Tested by

no test coverage detected