[][src]Function vmread_sys::VerifyTlb

pub unsafe extern "C" fn VerifyTlb(
    data: *const ProcessData,
    tlb: *mut tlb_t,
    splitCount: size_t,
    splitID: size_t
)

@brief Verify the TLB entries

@param data VM process data @param tlb TLB structure to verify @param splitCount how many splits there are @param splitID which slice to verify

This allows to verify the TLB structure before initializing a round of memory operations. Useful when the same memory addresses are being accessed in a loop with some delay. During the said delay we could verify the TLB structure in (optionally) multithreaded way to make the memory operations fast.

splitCount allows us to split the TLB entries to verify to separate threads. Passing 1 to splitCount makes the function verify the entirety of TLB (single-threaded scenario)