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

Function blk_remove_all

components/drivers/block/blk.c:18–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16#include "blk_dfs.h"
17
18static void blk_remove_all(struct rt_blk_disk *disk)
19{
20 struct rt_blk_device *blk, *blk_next;
21
22 /* Remove all partitions */
23 rt_list_for_each_entry_safe(blk, blk_next, &disk->part_nodes, list)
24 {
25 disk_remove_blk_dev(blk, RT_TRUE);
26 }
27}
28
29static rt_err_t blk_open(rt_device_t dev, rt_uint16_t oflag)
30{

Callers 2

blk_controlFunction · 0.85

Calls 1

disk_remove_blk_devFunction · 0.85

Tested by

no test coverage detected