/* SPDX-License-Identifier: GPL-2.0 */ /* * IMPORTANT: The following constants must match the ones used and defined in * external/qemu/include/hw/misc/goldfish_pipe.h
*/
/* List of bitflags returned in status of CMD_POLL command */ enum PipePollFlags {
PIPE_POLL_IN = 1 << 0,
PIPE_POLL_OUT = 1 << 1,
PIPE_POLL_HUP = 1 << 2
};
/* Possible status values used to signal errors */ enum PipeErrors {
PIPE_ERROR_INVAL = -1,
PIPE_ERROR_AGAIN = -2,
PIPE_ERROR_NOMEM = -3,
PIPE_ERROR_IO = -4
};
/* Bit-flags used to signal events from the emulator */ enum PipeWakeFlags { /* emulator closed pipe */
PIPE_WAKE_CLOSED = 1 << 0,
/* pipe can now be read from */
PIPE_WAKE_READ = 1 << 1,
/* pipe can now be written to */
PIPE_WAKE_WRITE = 1 << 2,
/* close old pipes on snapshot load */
PIPE_CLOSE_LOAD_SNAPSHOT = 2,
/* some unrecoverable error on the pipe */
PIPE_CLOSE_ERROR = 3,
};
/* Bit flags for the 'flags' field */ enum PipeFlagsBits {
BIT_CLOSED_ON_HOST = 0, /* pipe closed by host */
BIT_WAKE_ON_WRITE = 1, /* want to be woken on writes */
BIT_WAKE_ON_READ = 2, /* want to be woken on reads */
};
/* * TODO(zyy): implement a deferred read/write execution to allow * parallel processing of pipe operations on the host.
*/
PIPE_CMD_WAKE_ON_DONE_IO,
};
#endif/* GOLDFISH_PIPE_QEMU_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.17 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.