Home | History | Annotate | Download | only in qemu

Lines Matching refs:AsyncContext

29  * An AsyncContext protects the callbacks of AIO requests and Bottom Halves
39 * To achieve the desired semantics we switch into a new AsyncContext.
40 * Callbacks must only be run if they belong to the current AsyncContext.
47 struct AsyncContext {
48 /* Consecutive number of the AsyncContext (position in the stack) */
55 struct AsyncContext *parent;
58 /* The currently active AsyncContext */
59 static struct AsyncContext *async_context = &(struct AsyncContext) { 0 };
62 * Enter a new AsyncContext. Already scheduled Bottom Halves and AIO callbacks
67 struct AsyncContext *new = qemu_mallocz(sizeof(*new));
82 * Leave the currently active AsyncContext. All Bottom Halves belonging to the
87 struct AsyncContext *old = async_context;
108 * Returns the ID of the currently active AsyncContext