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

Function sys_command_close

src/blkdev.cpp:530–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530void sys_command_close (int unitnum)
531{
532 struct blkdevstate *st = &state[unitnum];
533 if (st->isopen > 1) {
534 st->isopen--;
535 return;
536 }
537 if (st->tape) {
538 tape_free (st->tape);
539 st->tape = NULL;
540 }
541 sys_command_close_internal (unitnum);
542}
543
544void blkdev_cd_change (int unitnum, const TCHAR *name)
545{

Callers 11

sys_cddev_closeFunction · 0.85
close_filesys_unitFunction · 0.85
dev_close_3Function · 0.85
scsiemul_switchscsiFunction · 0.85
dev_resetFunction · 0.85
get_standard_cd_unit2Function · 0.85
close_standard_cd_unitFunction · 0.85
close_unitFunction · 0.85
scsi_freeFunction · 0.85
scsi_addnativeFunction · 0.85
close_unitFunction · 0.85

Calls 2

tape_freeFunction · 0.85

Tested by

no test coverage detected