Skip to content
Snippets Groups Projects
Select Git revision
  • 9bde0774b8a6823eaef39e5c72a6f6810624bb93
  • master default protected
  • gitkeep
  • dev protected
  • Issue/2309-docs
  • Hotfix/2097-fixTimeFormat
  • Issue/1910-MigrationtoNET6.0
  • Sprint/2022-01
  • Sprint/2021-05
  • Product/1188-LoggingExtended
  • Topic/1221-LogginExtendedNew
  • Sprint/2021-03
  • Product/1287-dotnet5Sharepoint
  • Topic/1334-dotnet5migration
  • Topic/1221-LoggingExtended
  • Sprint/2021-01
  • Product/407-net5migration
  • Topic/1226-loggingLibraryMigration
  • v2.2.2
  • v2.2.1
  • v2.2.0
  • v2.1.0
  • v2.0.0
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.1
  • v1.0.0
28 results

AnalyticsLogObject.cs

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    block_int.h 15.60 KiB
    /*
     * QEMU System Emulator block driver
     *
     * Copyright (c) 2003 Fabrice Bellard
     *
     * Permission is hereby granted, free of charge, to any person obtaining a copy
     * of this software and associated documentation files (the "Software"), to deal
     * in the Software without restriction, including without limitation the rights
     * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
     * copies of the Software, and to permit persons to whom the Software is
     * furnished to do so, subject to the following conditions:
     *
     * The above copyright notice and this permission notice shall be included in
     * all copies or substantial portions of the Software.
     *
     * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
     * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
     * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     * THE SOFTWARE.
     */
    #ifndef BLOCK_INT_H
    #define BLOCK_INT_H
    
    #include "block.h"
    #include "qemu-option.h"
    #include "qemu-queue.h"
    #include "qemu-coroutine.h"
    #include "qemu-timer.h"
    #include "qapi-types.h"
    
    #define BLOCK_FLAG_ENCRYPT	1
    #define BLOCK_FLAG_COMPAT6	4
    
    #define BLOCK_IO_LIMIT_READ     0
    #define BLOCK_IO_LIMIT_WRITE    1
    #define BLOCK_IO_LIMIT_TOTAL    2
    
    #define BLOCK_IO_SLICE_TIME     100000000
    #define NANOSECONDS_PER_SECOND  1000000000.0
    
    #define BLOCK_OPT_SIZE          "size"
    #define BLOCK_OPT_ENCRYPT       "encryption"
    #define BLOCK_OPT_COMPAT6       "compat6"
    #define BLOCK_OPT_BACKING_FILE  "backing_file"
    #define BLOCK_OPT_BACKING_FMT   "backing_fmt"
    #define BLOCK_OPT_CLUSTER_SIZE  "cluster_size"
    #define BLOCK_OPT_TABLE_SIZE    "table_size"
    #define BLOCK_OPT_PREALLOC      "preallocation"
    #define BLOCK_OPT_SUBFMT        "subformat"
    #define BLOCK_OPT_COMPAT_LEVEL  "compat"
    
    typedef struct BdrvTrackedRequest BdrvTrackedRequest;
    
    typedef struct BlockIOLimit {
        int64_t bps[3];
        int64_t iops[3];
    } BlockIOLimit;
    
    typedef struct BlockIOBaseValue {
        uint64_t bytes[2];
        uint64_t ios[2];
    } BlockIOBaseValue;
    
    typedef struct BlockJob BlockJob;
    
    /**
     * BlockJobType: