Searched refs:SwapFile (Results 1 – 2 of 2) sorted by relevance
/external/crosvm/swap/src/ |
D | file.rs | 278 pub struct SwapFile<'a> { struct 288 impl<'a> SwapFile<'a> { argument 701 assert_eq!(SwapFile::new(&file, 200).is_ok(), true); in new_success() 707 let swap_file = SwapFile::new(&file, 200).unwrap(); in len() 715 let swap_file = SwapFile::new(&file, 200).unwrap(); in page_content_default_is_none() 723 let mut swap_file = SwapFile::new(&file, 200).unwrap(); in page_content_returns_content() 738 let swap_file = SwapFile::new(&file, 200).unwrap(); in page_content_out_of_range() 747 fn assert_page_content(swap_file: &SwapFile, idx: usize, data: &[u8]) { in assert_page_content() argument 758 let mut swap_file = SwapFile::new(&file, 200).unwrap(); in write_to_file_swap_file() 774 let mut swap_file = SwapFile::new(&file, 200).unwrap(); in write_to_file_invalid_size() [all …]
|
D | page_handler.rs | 24 use crate::file::SwapFile; 163 file: SwapFile<'a>, 262 let file = SwapFile::new(swap_file, offset_pages)?; in create()
|