* @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 */
| 122 | * @param id is the id of IDA object |
| 123 | */ |
| 124 | void 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. |
no test coverage detected