diff options
Diffstat (limited to 'src/kvm_rs/kvm_sys.rs.html')
-rw-r--r-- | src/kvm_rs/kvm_sys.rs.html | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/kvm_rs/kvm_sys.rs.html b/src/kvm_rs/kvm_sys.rs.html index 44136b6..9fbbf41 100644 --- a/src/kvm_rs/kvm_sys.rs.html +++ b/src/kvm_rs/kvm_sys.rs.html @@ -1,6 +1,6 @@ <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `src/kvm_sys.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>kvm_sys.rs - source</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><script src="../../crates.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg"> <link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"> -<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../kvm_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button> +<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">☰</div><a href='../../kvm_rs/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button> <a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><pre class="line-numbers"><span id="1"> 1</span> <span id="2"> 2</span> <span id="3"> 3</span> @@ -208,7 +208,7 @@ <span class="attribute">#![<span class="ident">allow</span>(<span class="ident">dead_code</span>)]</span> <span class="comment">// Generated by `build.rs`.</span> -<span class="macro">include</span><span class="macro">!</span>(<span class="macro">concat</span><span class="macro">!</span>(<span class="macro">env</span><span class="macro">!</span>(<span class="string">"OUT_DIR"</span>), <span class="string">"/kvm_constants.rs"</span>)); +<span class="macro">include!</span>(<span class="macro">concat!</span>(<span class="macro">env!</span>(<span class="string">"OUT_DIR"</span>), <span class="string">"/kvm_constants.rs"</span>)); <span class="attribute">#[<span class="ident">repr</span>(<span class="ident">C</span>)]</span> <span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Default</span>, <span class="ident">Debug</span>)]</span> @@ -345,57 +345,57 @@ <span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">test</span>)]</span> <span class="kw">mod</span> <span class="ident">tests</span> { <span class="kw">use</span> <span class="kw">super</span>::<span class="kw-2">*</span>; - <span class="kw">use</span> <span class="ident">std</span>::<span class="ident">mem</span>; + <span class="kw">use</span> <span class="ident">std::mem</span>; <span class="attribute">#[<span class="ident">test</span>]</span> <span class="kw">fn</span> <span class="ident">check_kvm_regs</span>() { - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_regs</span><span class="op">></span>(), <span class="ident">TEST_KVM_REGS_SIZE</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">align_of</span>::<span class="op"><</span><span class="ident">kvm_regs</span><span class="op">></span>(), <span class="ident">TEST_KVM_REGS_ALIGN</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_regs</span><span class="op">></span>(), <span class="ident">TEST_KVM_REGS_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::align_of</span>::<span class="op"><</span><span class="ident">kvm_regs</span><span class="op">></span>(), <span class="ident">TEST_KVM_REGS_ALIGN</span>); } <span class="attribute">#[<span class="ident">test</span>]</span> <span class="kw">fn</span> <span class="ident">check_kvm_segment</span>() { - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_segment</span><span class="op">></span>(), <span class="ident">TEST_KVM_SEGMENT_SIZE</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">align_of</span>::<span class="op"><</span><span class="ident">kvm_segment</span><span class="op">></span>(), <span class="ident">TEST_KVM_SEGMENT_ALIGN</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_segment</span><span class="op">></span>(), <span class="ident">TEST_KVM_SEGMENT_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::align_of</span>::<span class="op"><</span><span class="ident">kvm_segment</span><span class="op">></span>(), <span class="ident">TEST_KVM_SEGMENT_ALIGN</span>); } <span class="attribute">#[<span class="ident">test</span>]</span> <span class="kw">fn</span> <span class="ident">check_kvm_dtable</span>() { - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_dtable</span><span class="op">></span>(), <span class="ident">TEST_KVM_DTABLE_SIZE</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">align_of</span>::<span class="op"><</span><span class="ident">kvm_dtable</span><span class="op">></span>(), <span class="ident">TEST_KVM_DTABLE_ALIGN</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_dtable</span><span class="op">></span>(), <span class="ident">TEST_KVM_DTABLE_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::align_of</span>::<span class="op"><</span><span class="ident">kvm_dtable</span><span class="op">></span>(), <span class="ident">TEST_KVM_DTABLE_ALIGN</span>); } <span class="attribute">#[<span class="ident">test</span>]</span> <span class="kw">fn</span> <span class="ident">check_kvm_sregs</span>() { - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_sregs</span><span class="op">></span>(), <span class="ident">TEST_KVM_SREGS_SIZE</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">align_of</span>::<span class="op"><</span><span class="ident">kvm_sregs</span><span class="op">></span>(), <span class="ident">TEST_KVM_SREGS_ALIGN</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>( - <span class="ident">mem</span>::<span class="ident">size_of_val</span>(<span class="kw-2">&</span><span class="ident">kvm_sregs</span>::<span class="ident">default</span>().<span class="ident">interrupt_bitmap</span>), + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_sregs</span><span class="op">></span>(), <span class="ident">TEST_KVM_SREGS_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::align_of</span>::<span class="op"><</span><span class="ident">kvm_sregs</span><span class="op">></span>(), <span class="ident">TEST_KVM_SREGS_ALIGN</span>); + <span class="macro">assert_eq!</span>( + <span class="ident">mem::size_of_val</span>(<span class="kw-2">&</span><span class="ident">kvm_sregs::default</span>().<span class="ident">interrupt_bitmap</span>), <span class="ident">TEST_KVM_SREGS_INTERRTUP_BITMAP_SIZE</span> ); } <span class="attribute">#[<span class="ident">test</span>]</span> <span class="kw">fn</span> <span class="ident">check_kvm_userspace_memory_region</span>() { - <span class="macro">assert_eq</span><span class="macro">!</span>( - <span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_userspace_memory_region</span><span class="op">></span>(), + <span class="macro">assert_eq!</span>( + <span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_userspace_memory_region</span><span class="op">></span>(), <span class="ident">TEST_KVM_USERSPACE_MEMORY_REGION_SIZE</span> ); - <span class="macro">assert_eq</span><span class="macro">!</span>( - <span class="ident">mem</span>::<span class="ident">align_of</span>::<span class="op"><</span><span class="ident">kvm_userspace_memory_region</span><span class="op">></span>(), + <span class="macro">assert_eq!</span>( + <span class="ident">mem::align_of</span>::<span class="op"><</span><span class="ident">kvm_userspace_memory_region</span><span class="op">></span>(), <span class="ident">TEST_KVM_USERSPACE_MEMORY_REGION_ALIGN</span> ); } <span class="attribute">#[<span class="ident">test</span>]</span> <span class="kw">fn</span> <span class="ident">check_kvm_run</span>() { - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_run</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_SIZE</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">align_of</span>::<span class="op"><</span><span class="ident">kvm_run</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_ALIGN</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_run_io</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_IO_SIZE</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_run_mmio</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_MMIO_SIZE</span>); - <span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op"><</span><span class="ident">kvm_run_union_s</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_UNION_S_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_run</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::align_of</span>::<span class="op"><</span><span class="ident">kvm_run</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_ALIGN</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_run_io</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_IO_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_run_mmio</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_MMIO_SIZE</span>); + <span class="macro">assert_eq!</span>(<span class="ident">mem::size_of</span>::<span class="op"><</span><span class="ident">kvm_run_union_s</span><span class="op">></span>(), <span class="ident">TEST_KVM_RUN_UNION_S_SIZE</span>); } } </pre></div> -</section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="kvm_rs" data-search-js="../../search-index.js"></div> +</section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="kvm_rs" data-search-index-js="../../search-index.js" data-search-js="../../search.js"></div> <script src="../../main.js"></script><script src="../../source-script.js"></script><script src="../../source-files.js"></script></body></html>
\ No newline at end of file |