Records
Functions
-
zx::result<zx::bti> CreateFakeBti ()Creates a fake BTI object.
Defined at line 248 of file ../../sdk/lib/driver/fake-bti/cpp/fake-bti.cc
-
zx::result<zx::bti> CreateFakeBtiWithPaddrs (cpp20::span<const zx_paddr_t> paddrs)Create a fake BTI object with the fake physical addresses from |paddrs| in its zx_bti_pin.
Defined at line 250 of file ../../sdk/lib/driver/fake-bti/cpp/fake-bti.cc
-
zx::result<> SetPaddrs (zx::unowned_bti bti, cpp20::span<const zx_paddr_t> paddrs)Updates the pinned paddrs for `bti` (which must have been previously created via
[`CreateFakeBti`] or its siblings).
Defined at line 260 of file ../../sdk/lib/driver/fake-bti/cpp/fake-bti.cc
-
zx::result<std::vector<FakeBtiPinnedVmoInfo>> GetPinnedVmo (zx::unowned_bti bti)Fake BTI stores all pinned VMOs for testing purposes. Tests can call this method to get
duplicates of all pinned VMO handles, as well as the pinned pages size and offset for each VMO.
It's the caller's responsibility to close all the returned VMO handles.
Defined at line 273 of file ../../sdk/lib/driver/fake-bti/cpp/fake-bti.cc
-
zx::result<std::vector<zx_paddr_t>> GetVmoPhysAddress (zx::unowned_bti bti, FakeBtiPinnedVmoInfo & vmo_info)Fake BTI stores all the fake physical addresses that is returned by |zx_bti_pin|.
Tests can call this method to get the fake physical addresses corresponding to |vmo_info|.
Defined at line 287 of file ../../sdk/lib/driver/fake-bti/cpp/fake-bti.cc