Home
last modified time | relevance | path

Searched defs:CStr (Results 1 – 11 of 11) sorted by relevance

/rust/kernel/
Dfirmware.rs62 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal()
79 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request()
85 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn()
Dstr.rs152 pub struct CStr([u8]); struct
154 impl CStr { implementation
230 pub const unsafe fn from_bytes_with_nul_unchecked(bytes: &[u8]) -> &CStr { in from_bytes_with_nul_unchecked()
243 pub unsafe fn from_bytes_with_nul_unchecked_mut(bytes: &mut [u8]) -> &mut CStr { in from_bytes_with_nul_unchecked_mut()
378 impl fmt::Display for CStr { implementation
407 impl fmt::Debug for CStr { implementation
438 impl AsRef<BStr> for CStr { implementation
445 impl Deref for CStr { implementation
454 impl Index<ops::RangeFrom<usize>> for CStr { implementation
467 impl Index<ops::RangeFull> for CStr { implementation
[all …]
Derror.rs162 pub fn name(&self) -> Option<&'static CStr> { in name()
179 pub fn name(&self) -> Option<&'static CStr> { in name()
Dkunit.rs173 name: &'static kernel::str::CStr, in kunit_case()
Duaccess.rs307 pub fn strcpy_into_buf<'buf>(self, buf: &'buf mut [u8]) -> Result<&'buf CStr> { in strcpy_into_buf()
Dworkqueue.rs369 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> in new()
/rust/kernel/sync/
Dpoll.rs76 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
Dcondvar.rs106 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
Dlock.rs124 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
/rust/kernel/sync/lock/
Dglobal.rs23 const NAME: &'static CStr; variable
/rust/kernel/net/
Dphy.rs582 const NAME: &'static CStr; variable