qemu_pci_serial device locking/sync

This commit is contained in:
2025-11-24 22:29:32 +01:00
parent 80a29d8ff6
commit cc2b96f37a
3 changed files with 83 additions and 2 deletions

View File

@ -17,6 +17,8 @@
#define E_SPAWNERROR -13
#define E_NOTYET -14
#define E_MOUNTERR -15
#define E_DEVLOCKED -16
#define E_DEVNOTYOURLOCK -17
#if !defined(__ASSEMBLER__)
@ -38,6 +40,8 @@ static const char *_ERROR_STRINGS[] = {
"Process spawn error",
"Data isn't ready yet",
"File system mount error",
"This device is locked",
"Device is hasn't been locked by this process",
};
#define ERRSTRING_INDEX(ioh) ((size_t)((ioh) < 0 ? (ioh) * (-1) : (ioh)))