Home
last modified time | relevance | path

Searched refs:CStr (Results 1 – 15 of 15) sorted by relevance

/openbmc/qemu/rust/qemu-api/tests/
H A Dvmstate_tests.rs6 ffi::{c_void, CStr},
63 unsafe { CStr::from_ptr(foo_fields[0].name) }.to_bytes_with_nul(), in test_vmstate_uint16()
83 unsafe { CStr::from_ptr(foo_fields[1].name) }.to_bytes_with_nul(), in test_vmstate_unused()
104 unsafe { CStr::from_ptr(foo_fields[2].name) }.to_bytes_with_nul(), in test_vmstate_varray_uint16_unsafe()
125 unsafe { CStr::from_ptr(foo_fields[3].name) }.to_bytes_with_nul(), in test_vmstate_varray_multiply()
195 unsafe { CStr::from_ptr(foo_fields[0].name) }.to_bytes_with_nul(), in test_vmstate_bool_v()
215 unsafe { CStr::from_ptr(foo_fields[1].name) }.to_bytes_with_nul(), in test_vmstate_uint64()
236 unsafe { CStr::from_ptr(foo_fields[2].name) }.to_bytes_with_nul(), in test_vmstate_struct_varray_uint8()
260 unsafe { CStr::from_ptr(foo_fields[3].name) }.to_bytes_with_nul(), in test_vmstate_struct_varray_uint32_multiply()
286 unsafe { CStr::from_ptr(foo_fields[4].name) }.to_bytes_with_nul(), in test_vmstate_macro_array()
[all …]
H A Dtests.rs5 use std::{ffi::CStr, ptr::addr_of};
60 const TYPE_NAME: &'static CStr = c"dummy"; variable
94 const TYPE_NAME: &'static CStr = c"dummy_child"; variable
/openbmc/qemu/rust/hw/char/pl011/src/
H A Dlib.rs20 pub const TYPE_PL011: &::std::ffi::CStr = c"pl011";
21 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c"pl011_luminary";
H A Ddevice.rs6 ffi::{c_int, c_void, CStr},
163 const TYPE_NAME: &'static CStr = crate::TYPE_PL011; variable
703 const TYPE_NAME: &'static CStr = crate::TYPE_PL011_LUMINARY; variable
/openbmc/qemu/rust/qemu-api/src/
H A Dqdev.rs8 ffi::{c_int, c_void, CStr, CString},
148 const TYPE_NAME: &'static CStr = variable
149 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_RESETTABLE_INTERFACE) };
195 name: ::std::ffi::CStr::as_ptr($name),
207 name: ::std::ffi::CStr::as_ptr($name),
218 name: ::std::ffi::CStr::as_ptr($name),
245 const TYPE_NAME: &'static CStr = variable
246 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_DEVICE) };
407 const TYPE_NAME: &'static CStr = variable
408 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_CLOCK) };
H A Dirq.rs8 ffi::{c_int, CStr},
112 const TYPE_NAME: &'static CStr = variable
113 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_IRQ) };
H A Dsysbus.rs7 use std::{ffi::CStr, ptr::addr_of_mut};
31 const TYPE_NAME: &'static CStr = variable
32 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_SYS_BUS_DEVICE) };
H A Derror.rs39 ffi::{c_char, c_int, c_void, CStr},
295 CStr::from_ptr(error.src).to_str() in cloned_from_foreign()
316 use std::ffi::CStr;
325 fn error_for_test(msg: &CStr) -> OwnedPointer<Error> { in error_for_test()
344 unsafe fn error_get_pretty<'a>(local_err: *mut bindings::Error) -> &'a CStr { in error_get_pretty() argument
345 unsafe { CStr::from_ptr(bindings::error_get_pretty(local_err)) } in error_get_pretty()
H A Dmemory.rs8 ffi::{c_uint, c_void, CStr, CString},
189 const TYPE_NAME: &'static CStr = variable
190 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_MEMORY_REGION) };
H A Dqom.rs96 ffi::{c_void, CStr},
463 const TYPE_NAME: &'static CStr; variable
502 const TYPE_NAME: &'static CStr; variable
744 const TYPE_NAME: &'static CStr = variable
745 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_OBJECT) };
925 CStr::from_ptr(p).to_string_lossy() in typename()
H A Dchardev.rs13 ffi::{c_int, c_void, CStr},
257 const TYPE_NAME: &'static CStr = variable
258 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_CHARDEV) };
H A Dvmstate.rs563 name: ::std::ffi::CStr::as_ptr($test_name),
/openbmc/qemu/rust/hw/timer/hpet/src/
H A Dlib.rs13 pub const TYPE_HPET: &::std::ffi::CStr = c"hpet";
H A Ddevice.rs6 ffi::{c_int, c_void, CStr},
893 const TYPE_NAME: &'static CStr = crate::TYPE_HPET; variable
1011 const VALIDATE_TIMERS_NAME: &CStr = c"num_timers must match";
/openbmc/openbmc/meta-security/recipes-ids/suricata/files/
H A DCVE-2024-38535_pre.patch32 use std::ffi::CStr;