block_int.h (4417ab7adf1613799054be5afedf810fc2524ee8) | block_int.h (cfa1a5723f0fc8eb6563fb1d19c206fd5e40cd41) |
---|---|
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 --- 459 unchanged lines hidden (view full) --- 468 * called. 469 * 470 * Note that this can be nested. If drained_begin() was called twice, new 471 * I/O is allowed only after drained_end() was called twice, too. 472 */ 473 void (*drained_begin)(BdrvChild *child); 474 void (*drained_end)(BdrvChild *child); 475 | 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 --- 459 unchanged lines hidden (view full) --- 468 * called. 469 * 470 * Note that this can be nested. If drained_begin() was called twice, new 471 * I/O is allowed only after drained_end() was called twice, too. 472 */ 473 void (*drained_begin)(BdrvChild *child); 474 void (*drained_end)(BdrvChild *child); 475 |
476 /* Notifies the parent that the child has been activated (e.g. when 477 * migration is completing) and it can start requesting permissions and 478 * doing I/O on it. */ | 476 /* Notifies the parent that the child has been activated/inactivated (e.g. 477 * when migration is completing) and it can start/stop requesting 478 * permissions and doing I/O on it. */ |
479 void (*activate)(BdrvChild *child, Error **errp); | 479 void (*activate)(BdrvChild *child, Error **errp); |
480 int (*inactivate)(BdrvChild *child); |
|
480 481 void (*attach)(BdrvChild *child); 482 void (*detach)(BdrvChild *child); 483}; 484 485extern const BdrvChildRole child_file; 486extern const BdrvChildRole child_format; 487extern const BdrvChildRole child_backing; --- 450 unchanged lines hidden --- | 481 482 void (*attach)(BdrvChild *child); 483 void (*detach)(BdrvChild *child); 484}; 485 486extern const BdrvChildRole child_file; 487extern const BdrvChildRole child_format; 488extern const BdrvChildRole child_backing; --- 450 unchanged lines hidden --- |