MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / sys_command_write

Function sys_command_write

src/blkdev.cpp:1039–1053  ·  view source on GitHub ↗

write block */

Source from the content-addressed store, hash-verified

1037
1038/* write block */
1039int sys_command_write (int unitnum, uae_u8 *data, int offset, int size)
1040{
1041 int v;
1042 if (failunit (unitnum))
1043 return 0;
1044 if (!getsem (unitnum))
1045 return 0;
1046 if (state[unitnum].device_func->write == NULL) {
1047 v = 0;
1048 } else {
1049 v = state[unitnum].device_func->write (unitnum, data, offset, size);
1050 }
1051 freesem (unitnum);
1052 return v;
1053}
1054
1055int sys_command_ismedia (int unitnum, int quick)
1056{

Callers 1

command_writeFunction · 0.85

Calls 4

failunitFunction · 0.85
getsemFunction · 0.85
freesemFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected