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

Function rt_reset_control_put

components/drivers/reset/reset.c:247–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void rt_reset_control_put(struct rt_reset_control *rstc)
248{
249 struct rt_reset_controller *rstcer;
250
251 if (!rstc)
252 {
253 return;
254 }
255
256 rstcer = rstc->rstcer;
257
258 rt_spin_lock(&rstcer->spinlock);
259
260 rt_list_remove(&rstc->list);
261
262 rt_spin_unlock(&rstcer->spinlock);
263
264 reset_free(rstc);
265}
266
267static struct rt_reset_control *ofw_get_reset_control(struct rt_ofw_node *np, int index,
268 const char *name, rt_bool_t is_array)

Callers 3

dw_wdt_freeFunction · 0.85
reset_freeFunction · 0.85
ofw_get_reset_controlFunction · 0.85

Calls 4

rt_list_removeFunction · 0.85
reset_freeFunction · 0.85
rt_spin_lockFunction · 0.50
rt_spin_unlockFunction · 0.50

Tested by

no test coverage detected