Enumerations

enum Contiguity
Name Value
Contig 0
NonContig 1

Defined at line 1049 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

enum ResizeTarget
Name Value
Parent 0
Child 1

Defined at line 1054 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

Records

Functions

  • zx::result<PhysVmo> GetTestPhysVmo (size_t size)

    Create and return a physical VMO from the reserved regions of RAM. |size|

    indicates the desired size of the VMO, or 0 to fetch the entire reserved

    region of RAM, whatever its size might be.

    Defined at line 17 of file ../../zircon/system/utest/core/vmo/helpers.cc

  • bool AllSameVal (uint8_t * ptr, size_t len, uint8_t val)

    Defined at line 22 of file ../../zircon/system/utest/core/vmo/vmo-zero.cc

  • template <typename Predicate>
    bool PollVmoInfoUntil (const zx::vmo & vmo, Predicate && predicate)

    Repeatedly poll VMO until |predicate| returns true or an error occurs.

    Returns true on success, false on error.

    |Predicate| is a function that accepts |const zx_info_vmo_t

    &

    | and returns |bool|.

    Defined at line 54 of file ../../zircon/system/utest/core/vmo/helpers.h

  • zx::bti CreateNamedBti (const zx::iommu & fake_iommu, uint32_t options, uint64_t bti_id, const char * name)

    Defined at line 86 of file ../../zircon/system/utest/core/vmo/helpers.cc

  • template <size_t N>
    void CheckContigState (const zx::bti & bti, const zx::vmo & vmo)

    Helper function which checks that the give vmo is contiguous.

    Defined at line 95 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

  • template <typename T>
    void CallPermutationsHelper (T fn, uint32_t count, uint32_t[] perm, bool[] elts, uint32_t idx)

    Helper function for CallPermutations

    Defined at line 110 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

  • template <typename T>
    void CallPermutations (T fn, uint32_t count)

    Function which invokes |fn| with all the permutations of [0...count-1].

    Defined at line 131 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

  • void VmoWriteTestHelper (bool clone_write)

    Tests that zx_vmo_write into the (clone|parent) doesn't affect the other.

    Defined at line 190 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

  • void VmarWriteTestHelper (bool clone_write)

    Tests that writing into the mapped (clone|parent) doesn't affect the other.

    Defined at line 212 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

  • void CloseTestHelper (bool close_orig)

    Tests that closing the (parent|clone) doesn't affect the other.

    Defined at line 240 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc

  • void ManyChildrenTestHelper (bool reverse_close)

    Tests that child count and zero child signals for when there are many children. Tests

    with closing the children both in the order they were created and the reverse order.

    Defined at line 1431 of file ../../zircon/system/utest/core/vmo/vmo-clone2.cc