Home
last modified time | relevance | path

Searched refs:str (Results 1 – 22 of 22) sorted by relevance

/rust/macros/
A Dmodule.rs26 module: &'a str,
32 fn new(module: &'a str) -> Self { in new()
40 fn emit_base(&mut self, field: &str, content: &str, builtin: bool) { in emit_base() argument
78 fn emit_only_builtin(&mut self, field: &str, content: &str) { in emit_only_builtin() argument
82 fn emit_only_loadable(&mut self, field: &str, content: &str) { in emit_only_loadable() argument
86 fn emit(&mut self, field: &str, content: &str) { in emit() argument
107 const EXPECTED_KEYS: &[&str] = &[ in parse()
116 const REQUIRED_KEYS: &[&str] = &["type", "name", "license"]; in parse()
156 let mut ordered_keys: Vec<&str> = Vec::new(); in parse()
/rust/kernel/
A Dstr.rs171 ($str:literal) => {{
172 const S: &'static str = $str;
173 const C: &'static $crate::str::BStr = $crate::str::BStr::from_bytes(S.as_bytes());
360 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str() argument
361 core::str::from_utf8(self.as_bytes()) in to_str()
382 pub unsafe fn as_str_unchecked(&self) -> &str { in as_str_unchecked() argument
596 ($str:expr) => {{
597 const S: &str = concat!($str, "\0");
598 const C: &$crate::str::CStr = match $crate::str::CStr::from_bytes_with_nul(S.as_bytes()) {
616 const ALL_ASCII_CHARS: &str =
[all …]
A Dfirmware.rs7 use crate::{bindings, device::Device, error::Error, error::Result, ffi, str::CStr};
199 const __MODULE_FIRMWARE_PREFIX: &'static $crate::str::CStr = if cfg!(MODULE) {
280 pub const fn push(self, s: &str) -> Self { in push()
A Derror.rs10 str::CStr,
15 use core::str::Utf8Error;
192 unsafe { core::str::from_utf8_unchecked(name.to_bytes()) }, in fmt()
470 pub const VTABLE_DEFAULT_ERROR: &str =
A Dtransmute.rs65 str,
A Dkunit.rs63 static FILE: &'static $crate::str::CStr = $crate::c_str!($file);
65 static CONDITION: &'static $crate::str::CStr = $crate::c_str!(stringify!($condition));
200 name: &'static kernel::str::CStr, in kunit_case()
A Dprelude.rs44 pub use super::{str::CStr, ThisModule};
A Djump_label.rs40 const _: &str = include!(concat!(
A Dlib.rs122 pub mod str; module
180 const NAME: &'static crate::str::CStr;
A Ddriver.rs9 use crate::{acpi, device, of, str::CStr, try_pin_init, types::Opaque, ThisModule};
A Dprint.rs13 str::RawFormatter,
A Dpci.rs15 str::CStr,
A Dopp.rs18 str::CString,
A Dconfigfs.rs117 use crate::str::CString;
/rust/
A Dbuild_error.rs29 pub const fn build_error(msg: &'static str) -> ! { in build_error() argument
/rust/kernel/device/
A Dproperty.rs15 str::{CStr, CString},
445 let mut str: *mut u8 = ptr::null_mut(); in read_from_fwnode_property() variables
446 let pstr: *mut _ = &mut str; in read_from_fwnode_property()
461 let str = unsafe { CStr::from_char_ptr(*pstr) }; in read_from_fwnode_property()
462 Ok(str.try_into()?) in read_from_fwnode_property()
/rust/kernel/block/mq/
A Draw_writer.rs39 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str()
/rust/kernel/sync/lock/
A Dglobal.rs8 str::CStr,
270 const NAME: &'static $crate::str::CStr = $crate::c_str!(::core::stringify!($name));
/rust/kernel/io/
A Dresource.rs12 use crate::str::{CStr, CString};
/rust/kernel/sync/
A Dcondvar.rs11 str::CStr,
A Dlock.rs10 str::CStr,
/rust/pin-init/src/
A Dlib.rs1648 {<T>} *mut [T], {<T>} *const [T], *mut str, *const str,

Completed in 73 milliseconds