Searched refs:vhost_memory (Results 1 – 7 of 7) sorted by relevance
/external/rust/crates/vmm_vhost/src/vhost_kern/ |
D | vhost_binding.rs | 43 ioctl_iow_nr!(VHOST_SET_MEM_TABLE, VHOST, 0x03, vhost_memory); 184 pub struct vhost_memory { struct 208 buf: Vec<vhost_memory>, argument 215 let count = (size + 2 * std::mem::size_of::<vhost_memory>() - 1) in new() 216 / std::mem::size_of::<vhost_memory>(); in new() 217 let mut buf: Vec<vhost_memory> = vec![Default::default(); count]; in new() 223 &self.buf[0] as *const vhost_memory as *const char in as_ptr() constant 226 pub fn get_header(&self) -> &vhost_memory { in get_header() argument 341 ::std::mem::size_of::<vhost_memory>(), in bindgen_test_layout_vhost_memory() 343 concat!("Size of: ", stringify!(vhost_memory)) in bindgen_test_layout_vhost_memory() [all …]
|
D | mod.rs | 125 let mut vhost_memory = VhostMemory::new(regions.len() as u16); in set_mem_table() localVariable 127 vhost_memory.set_region( in set_mem_table() 141 let ret = unsafe { ioctl_with_ptr(self, VHOST_SET_MEM_TABLE(), vhost_memory.as_ptr()) }; in set_mem_table()
|
/external/crosvm/vhost/src/ |
D | lib.rs | 113 const SIZE_OF_MEMORY: usize = mem::size_of::<virtio_sys::vhost_memory>(); in set_mem_table() 115 const ALIGN_OF_MEMORY: usize = mem::align_of::<virtio_sys::vhost_memory>(); in set_mem_table() 126 let vhost_memory = unsafe { allocation.as_mut::<virtio_sys::vhost_memory>() }; in set_mem_table() localVariable 128 vhost_memory.nregions = num_regions as u32; in set_mem_table() 131 let vhost_regions = unsafe { vhost_memory.regions.as_mut_slice(num_regions as usize) }; in set_mem_table() 148 let ret = unsafe { ioctl_with_ptr(self, virtio_sys::VHOST_SET_MEM_TABLE(), vhost_memory) }; in set_mem_table()
|
/external/crosvm/virtio_sys/src/ |
D | vhost.rs | 773 pub struct vhost_memory { struct 782 ::std::mem::size_of::<vhost_memory>(), in bindgen_test_layout_vhost_memory() argument 784 concat!("Size of: ", stringify!(vhost_memory)) in bindgen_test_layout_vhost_memory() 787 ::std::mem::align_of::<vhost_memory>(), in bindgen_test_layout_vhost_memory() 789 concat!("Alignment of ", stringify!(vhost_memory)) in bindgen_test_layout_vhost_memory() 792 unsafe { &(*(0 as *const vhost_memory)).nregions as *const _ as usize }, in bindgen_test_layout_vhost_memory() 796 stringify!(vhost_memory), in bindgen_test_layout_vhost_memory() 802 unsafe { &(*(0 as *const vhost_memory)).padding as *const _ as usize }, in bindgen_test_layout_vhost_memory() 806 stringify!(vhost_memory), in bindgen_test_layout_vhost_memory() 812 unsafe { &(*(0 as *const vhost_memory)).regions as *const _ as usize }, in bindgen_test_layout_vhost_memory() [all …]
|
D | lib.rs | 27 ioctl_iow_nr!(VHOST_SET_MEM_TABLE, VHOST, 0x03, vhost_memory);
|
/external/kernel-headers/original/uapi/linux/ |
D | vhost_types.h | 107 struct vhost_memory { struct
|
D | vhost.h | 38 #define VHOST_SET_MEM_TABLE _IOW(VHOST_VIRTIO, 0x03, struct vhost_memory)
|