Searched refs:CStr (Results 1 – 12 of 12) sorted by relevance
| /linux/rust/kernel/ |
| A D | str.rs | 153 pub struct CStr([u8]); struct 155 impl CStr { implementation 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 455 type Output = CStr; 468 type Output = CStr; 488 impl<Idx> Index<Idx> for CStr implementation 516 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) { [all …]
|
| A D | firmware.rs | 7 use crate::{bindings, device::Device, error::Error, error::Result, str::CStr}; 58 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal() argument 75 pub fn request(name: &CStr, dev: &Device) -> Result<Self> { in request() argument 81 pub fn request_nowarn(name: &CStr, dev: &Device) -> Result<Self> { in request_nowarn() argument
|
| A D | error.rs | 7 use crate::{alloc::AllocError, str::CStr}; 147 pub fn name(&self) -> Option<&'static CStr> { in name() argument 154 Some(unsafe { CStr::from_char_ptr(ptr) }) in name() 164 pub fn name(&self) -> Option<&'static CStr> { in name() argument
|
| 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));
|
| A D | prelude.rs | 38 pub use super::{str::CStr, ThisModule};
|
| A D | workqueue.rs | 370 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> in new() argument
|
| /linux/drivers/net/phy/ |
| A D | ax88796b_rust.rs | 44 const NAME: &'static CStr = c_str!("Asix Electronics AX88772A"); variable 108 const NAME: &'static CStr = c_str!("Asix Electronics AX88772C"); variable 128 const NAME: &'static CStr = c_str!("Asix Electronics AX88796B"); variable
|
| A D | qt2025.rs | 39 const NAME: &'static CStr = c_str!("QT2025 10Gpbs SFP+"); variable
|
| /linux/rust/kernel/sync/ |
| A D | condvar.rs | 12 str::CStr, 105 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() argument
|
| A D | lock.rs | 9 use crate::{init::PinInit, pin_init, str::CStr, types::Opaque, types::ScopeGuard}; 109 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() argument
|
| /linux/drivers/gpu/drm/ |
| A D | drm_panic_qr.rs | 30 use kernel::str::CStr; 962 let url_cstr: &CStr = unsafe { CStr::from_char_ptr(url) }; in drm_panic_qr_generate()
|
| /linux/rust/kernel/net/ |
| A D | phy.rs | 582 const NAME: &'static CStr; variable
|
Completed in 24 milliseconds