MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / SetBlockDevice

Method SetBlockDevice

src/filesystem/fatfs/fatfs.cpp:78–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76} // namespace
77
78auto FatFsFileSystem::SetBlockDevice(uint8_t pdrv, vfs::BlockDevice* device)
79 -> void {
80 if (pdrv < FF_VOLUMES) {
81 block_devices_[pdrv] = device;
82 }
83}
84
85auto FatFsFileSystem::GetBlockDevice(uint8_t pdrv) -> vfs::BlockDevice* {
86 if (pdrv >= FF_VOLUMES) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected