Lines Matching defs:perm
70 uint64_t perm;
122 blk_set_perm_locked(BlockBackend *blk, uint64_t perm, uint64_t shared_perm,
177 blk_set_perm(blk, blk->perm, blk->shared_perm, &local_err);
211 blk_set_perm_locked(blk, blk->perm, BLK_PERM_ALL, &local_err);
230 blk_set_perm_locked(blk, blk->perm, blk->shared_perm, &local_err);
256 if (!(blk->perm & ~BLK_PERM_CONSISTENT_READ)) {
347 * @perm is a bitmasks of BLK_PERM_* constants which describes the permissions
355 BlockBackend *blk_new(AioContext *ctx, uint64_t perm, uint64_t shared_perm)
364 blk->perm = perm;
386 * @perm is a bitmasks of BLK_PERM_* constants which describes the
394 BlockBackend *blk_new_with_bs(BlockDriverState *bs, uint64_t perm,
397 BlockBackend *blk = blk_new(bdrv_get_aio_context(bs), perm, shared_perm);
428 uint64_t perm = 0;
445 perm |= BLK_PERM_CONSISTENT_READ;
447 perm |= BLK_PERM_WRITE;
451 perm |= BLK_PERM_RESIZE;
463 blk = blk_new(bdrv_get_aio_context(bs), perm, shared);
464 blk->perm = perm;
903 uint64_t perm, shared_perm;
911 perm = 0;
914 perm = blk->perm;
920 perm, shared_perm, blk, errp);
948 blk_set_perm_locked(BlockBackend *blk, uint64_t perm, uint64_t shared_perm,
955 ret = bdrv_child_try_set_perm(blk->root, perm, shared_perm, errp);
961 blk->perm = perm;
967 int blk_set_perm(BlockBackend *blk, uint64_t perm, uint64_t shared_perm,
973 return blk_set_perm_locked(blk, perm, shared_perm, errp);
976 void blk_get_perm(BlockBackend *blk, uint64_t *perm, uint64_t *shared_perm)
979 *perm = blk->perm;
2216 return blk->perm & BLK_PERM_WRITE;