Home
last modified time | relevance | path

Searched defs:AllocError (Results 1 – 7 of 7) sorted by relevance

/linux-6.8/rust/alloc/
Dalloc.rs178 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() argument
198 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() argument
242 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() argument
247 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() argument
266 ) -> Result<NonNull<[u8]>, AllocError> { in grow() argument
277 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() argument
288 ) -> Result<NonNull<[u8]>, AllocError> { in shrink() argument
Dboxed.rs306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() argument
689 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice() argument
723 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice() argument
/linux-6.8/rust/kernel/
Dinit.rs1120 E: From<AllocError>; in try_pin_init()
1140 E: From<AllocError>; in try_init()
1159 E: From<AllocError>, in try_pin_init()
1173 E: From<AllocError>, in try_init()
1189 E: From<AllocError>, in try_pin_init()
1203 E: From<AllocError>, in try_init()
Dstr.rs206 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument
599 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() argument
Dworkqueue.rs210 pub fn try_spawn<T: 'static + Send + FnOnce()>(&self, func: T) -> Result<(), AllocError> { in try_spawn() argument
/linux-6.8/rust/alloc/collections/
Dmod.rs94 AllocError { enumerator
/linux-6.8/rust/kernel/sync/
Darc.rs165 pub fn try_new(contents: T) -> Result<Self, AllocError> { in try_new() argument
561 pub fn try_new(value: T) -> Result<Self, AllocError> { in try_new() argument