MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / diskIoctl

Method diskIoctl

lib/vfs/fatfs.cc:246–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

244 }
245
246 DRESULT diskIoctl(BYTE cmd, void* buffer)
247 {
248 switch (cmd)
249 {
250 case GET_SECTOR_SIZE:
251 *(WORD*)buffer = getLogicalSectorSize();
252 break;
253
254 case GET_SECTOR_COUNT:
255 *(LBA_t*)buffer = getLogicalSectorCount();
256 break;
257
258 case CTRL_SYNC:
259 break;
260
261 default:
262 return RES_PARERR;
263 }
264 return RES_OK;
265 }
266
267private:
268 void mount()

Callers 1

disk_ioctlFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected