Home
last modified time | relevance | path

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

/Linux-v6.6/rust/kernel/
Dstr.rs63 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 …]
Derror.rs7 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
Dkunit.rs59 static FILE: &'static $crate::str::CStr = $crate::c_str!($file);
61 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition));
Dprelude.rs36 pub use super::{str::CStr, ThisModule};
/Linux-v6.6/rust/kernel/sync/
Dcondvar.rs9 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
Dlock.rs9 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