| 16 | #include "blk_dfs.h" |
| 17 | |
| 18 | static 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 | |
| 29 | static rt_err_t blk_open(rt_device_t dev, rt_uint16_t oflag) |
| 30 | { |
no test coverage detected