/openbmc/linux/rust/kernel/ |
H A D | str.rs | 63 pub struct CStr([u8]); struct 65 impl CStr { impl 141 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked() argument 211 impl fmt::Display for CStr { implementation 240 impl fmt::Debug for CStr { implementation 271 impl AsRef<BStr> for CStr { implementation 278 impl Deref for CStr { implementation 287 impl Index<ops::RangeFrom<usize>> for CStr { implementation 288 type Output = CStr; 300 impl Index<ops::RangeFull> for CStr { implementation [all …]
|
H A D | error.rs | 7 use crate::str::CStr; 142 pub fn name(&self) -> Option<&'static CStr> { in name() argument 149 Some(unsafe { CStr::from_char_ptr(ptr) }) in name() 159 pub fn name(&self) -> Option<&'static CStr> { in name() argument
|
H A D | kunit.rs | 59 static FILE: &'static $crate::str::CStr = $crate::c_str!($file); 61 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition));
|
H A D | prelude.rs | 36 pub use super::{str::CStr, ThisModule};
|
/openbmc/qemu/rust/qemu-api/src/ |
H A D | device_class.rs | 5 use std::ffi::CStr; 33 name: ::std::ffi::CStr::as_ptr($name), 44 name: ::std::ffi::CStr::as_ptr($name), 71 pub const TYPE_DEVICE: &CStr = 72 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_DEVICE) }; 73 pub const TYPE_SYS_BUS_DEVICE: &CStr = 74 unsafe { CStr::from_bytes_with_nul_unchecked(bindings::TYPE_SYS_BUS_DEVICE) };
|
H A D | c_str.rs | 30 unsafe { std::ffi::CStr::from_bytes_with_nul_unchecked(BYTES) } 36 use std::ffi::CStr; 49 const GOOD: &CStr = c_str!(""); in test_cstr_macro_const()
|
H A D | definitions.rs | 7 use std::{ffi::CStr, os::raw::c_void}; 15 const TYPE_NAME: &'static CStr; variable 16 const PARENT_TYPE_NAME: Option<&'static CStr>; variable
|
/openbmc/qemu/rust/qemu-api/tests/ |
H A D | tests.rs | 5 use std::{ffi::CStr, os::raw::c_void}; 59 const TYPE_NAME: &'static CStr = c_str!("dummy"); in test_device_decl_macros() variable 60 const PARENT_TYPE_NAME: Option<&'static CStr> = Some(device_class::TYPE_DEVICE); in test_device_decl_macros() variable
|
/openbmc/qemu/rust/hw/char/pl011/src/ |
H A D | device.rs | 7 ffi::CStr, 109 const TYPE_NAME: &'static CStr = crate::TYPE_PL011; variable 110 const PARENT_TYPE_NAME: Option<&'static CStr> = Some(TYPE_SYS_BUS_DEVICE); variable 140 const CLK_NAME: &CStr = c_str!("clk"); in init() 663 const TYPE_NAME: &'static CStr = crate::TYPE_PL011_LUMINARY; variable 664 const PARENT_TYPE_NAME: Option<&'static CStr> = Some(crate::TYPE_PL011); variable
|
H A D | lib.rs | 51 pub const TYPE_PL011: &::std::ffi::CStr = c_str!("pl011"); 52 pub const TYPE_PL011_LUMINARY: &::std::ffi::CStr = c_str!("pl011_luminary");
|
/openbmc/linux/rust/kernel/sync/ |
H A D | condvar.rs | 9 use crate::{bindings, init::PinInit, pin_init, str::CStr, types::Opaque}; 95 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() argument
|
H A D | lock.rs | 9 use crate::{bindings, init::PinInit, pin_init, str::CStr, types::Opaque, types::ScopeGuard}; 103 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() argument
|
/openbmc/openbmc/meta-security/recipes-ids/suricata/files/ |
H A D | CVE-2024-38535_pre.patch | 32 use std::ffi::CStr;
|