block-io.h (d5ab9490cdf3ebcd97793982d4664f951816f6db) | block-io.h (d5f8d79c2f1f22cb883ae404abff1ee8276d47f1) |
---|---|
1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 157 unchanged lines hidden (view full) --- 166 167/** 168 * bdrv_get_aio_context: 169 * 170 * Returns: the currently bound #AioContext 171 */ 172AioContext *bdrv_get_aio_context(BlockDriverState *bs); 173 | 1/* 2 * QEMU System Emulator block driver 3 * 4 * Copyright (c) 2003 Fabrice Bellard 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 157 unchanged lines hidden (view full) --- 166 167/** 168 * bdrv_get_aio_context: 169 * 170 * Returns: the currently bound #AioContext 171 */ 172AioContext *bdrv_get_aio_context(BlockDriverState *bs); 173 |
174AioContext *bdrv_child_get_parent_aio_context(BdrvChild *c); 175 |
|
174/** 175 * Move the current coroutine to the AioContext of @bs and return the old 176 * AioContext of the coroutine. Increase bs->in_flight so that draining @bs 177 * will wait for the operation to proceed until the corresponding 178 * bdrv_co_leave(). 179 * 180 * Consequently, you can't call drain inside a bdrv_co_enter/leave() section as 181 * this will deadlock. --- 195 unchanged lines hidden --- | 176/** 177 * Move the current coroutine to the AioContext of @bs and return the old 178 * AioContext of the coroutine. Increase bs->in_flight so that draining @bs 179 * will wait for the operation to proceed until the corresponding 180 * bdrv_co_leave(). 181 * 182 * Consequently, you can't call drain inside a bdrv_co_enter/leave() section as 183 * this will deadlock. --- 195 unchanged lines hidden --- |