Searched refs:CStr (Results 1 – 6 of 6) sorted by relevance
/linux-6.6.21/rust/kernel/ |
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 …]
|
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
|
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));
|
D | prelude.rs | 36 pub use super::{str::CStr, ThisModule};
|
/linux-6.6.21/rust/kernel/sync/ |
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
|
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
|