Searched refs:CString (Results 1 – 2 of 2) sorted by relevance
| /linux-6.15/rust/kernel/ |
| H A D | str.rs | 358 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument 359 CString::try_from(self) in to_cstring() 580 struct String(CString); 584 String(CString::try_from_fmt(args).unwrap()) in from_fmt() 867 pub struct CString { struct 871 impl CString { impl 906 impl Deref for CString { implementation 916 impl DerefMut for CString { implementation 924 impl<'a> TryFrom<&'a CStr> for CString { implementation 934 Ok(CString { buf }) in try_from() [all …]
|
| /linux-6.15/drivers/gpu/nova-core/ |
| H A D | gpu.rs | 4 device, devres::Devres, error::code::*, firmware, fmt, pci, prelude::*, str::CString, 158 let mut chip_name = CString::try_from_fmt(fmt!("{}", spec.chipset))?; in new() 162 CString::try_from_fmt(fmt!("nvidia/{}/gsp/{}-{}.bin", &*chip_name, name_, ver)) in new()
|