Function fault_crate_swap::do_self_swap
source · pub fn do_self_swap(
crate_name: &str,
curr_dir: &DirRef,
override_namespace_crate_dir: Option<NamespaceDir>,
state_transfer_functions: Vec<String>,
namespace: &Arc<CrateNamespace>,
verbose_log: bool
) -> Result<SwapRanges, String>
Expand description
For swapping of a crate from the identical object file in the disk.
Wraps arpund the crate_swap function by creating an appropriate Swap request.
Arguments identical to the ones of crate_swap except
namespace : Arc to the current namespace
Returns a SwapRanges
struct indicating the old and new VirtualAddress
range
of the swapped crate