Home
last modified time | relevance | path

Searched refs:AllocError (Results 1 – 10 of 10) sorted by relevance

/linux/rust/kernel/alloc/
A Dvec_ext.rs5 use super::{AllocError, Flags};
20 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError>; in with_capacity() argument
35 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError>; in push() argument
52 fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> in extend_from_slice()
74 fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError>; in reserve() argument
78 fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() argument
84 fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument
113 fn reserve(&mut self, additional: usize, _flags: Flags) -> Result<(), AllocError> { in reserve() argument
119 fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() argument
129 return Err(AllocError); in reserve()
[all …]
A Dbox_ext.rs5 use super::{AllocError, Flags};
14 fn new(x: T, flags: Flags) -> Result<Self, AllocError>; in new() argument
19 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError>; in new_uninit() argument
41 fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
49 fn new_uninit(_flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit() argument
54 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit() argument
66 return Err(AllocError); in new_uninit()
/linux/rust/kernel/sync/
A Darc.rs20 alloc::{box_ext::BoxExt, AllocError, Flags},
199 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
640 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
648 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit() argument
650 let inner = Box::try_init::<AllocError>( in new_uninit()
654 data <- init::uninit::<T, AllocError>(), in new_uninit()
655 }? AllocError), in new_uninit()
/linux/rust/kernel/
A Dpage.rs6 alloc::{AllocError, Flags},
64 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { in alloc_page() argument
68 let page = NonNull::new(page).ok_or(AllocError)?; in alloc_page()
A Dstr.rs5 use crate::alloc::{flags::*, vec_ext::VecExt, AllocError};
309 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument
352 pub fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() argument
369 pub fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() argument
850 type Error = AllocError;
852 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() argument
856 .map_err(|_| AllocError)?; in try_from()
A Dinit.rs214 alloc::{box_ext::BoxExt, AllocError, Flags},
1191 E: From<AllocError>; in try_pin_init() argument
1211 E: From<AllocError>; in try_init() argument
1232 E: From<AllocError>, in try_pin_init() argument
1240 E: From<AllocError>, in try_init() argument
1252 E: From<AllocError>, in try_pin_init() argument
1260 E: From<AllocError>, in try_init() argument
1272 E: From<AllocError>, in try_pin_init() argument
1280 E: From<AllocError>, in try_init() argument
A Derror.rs7 use crate::{alloc::AllocError, str::CStr};
182 impl From<AllocError> for Error {
183 fn from(_: AllocError) -> Error { in from()
A Dworkqueue.rs133 use crate::alloc::{AllocError, Flags};
213 ) -> Result<(), AllocError> { in try_spawn() argument
219 self.enqueue(Box::pin_init(init, flags).map_err(|_| AllocError)?); in try_spawn()
A Dalloc.rs13 pub struct AllocError; struct
/linux/rust/kernel/list/
A Darc.rs7 use crate::alloc::{AllocError, Flags};
172 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
184 E: From<AllocError>, in pin_init() argument
195 E: From<AllocError>, in init() argument

Completed in 22 milliseconds