Home
last modified time | relevance | path

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

/linux/rust/pin-init/src/
H A Dalloc.rs12 type AllocError = core::convert::Infallible; typedef
32 E: From<AllocError>; in try_pin_init()
38 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init() argument
52 E: From<AllocError>; in try_init()
55 fn init(init: impl Init<T>) -> Result<Self, AllocError> { in init() argument
84 E: From<AllocError>, in try_pin_init()
92 E: From<AllocError>, in try_init()
102 E: From<AllocError>, in try_pin_init()
120 E: From<AllocError>, in try_init()
/linux/rust/kernel/alloc/
H A Dallocator.rs91 call( &self, ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> call() argument
152 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
222 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
243 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
H A Dkvec.rs328 push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> push() argument
504 with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> with_capacity() argument
625 reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> reserve() argument
766 shrink_to(&mut self, min_capacity: usize, flags: Flags) -> Result<(), AllocError> shrink_to() argument
852 extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> extend_with() argument
891 extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> extend_from_slice() argument
907 from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> from_elem() argument
932 resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> resize() argument
[all...]
H A Dkbox.rs256 new(x: T, flags: Flags) -> Result<Self, AllocError> new() argument
275 new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> new_uninit() argument
344 pin_slice<Func, Item, E>( mut init: Func, len: usize, flags: Flags, ) -> Result<Pin<Box<[T], A>>, E> where Func: FnMut(usize) -> Item, Item: PinInit<T, E>, E: From<AllocError>, pin_slice() argument
467 try_pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Pin<Self>, E> where E: From<AllocError>, try_pin_init() argument
475 try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, try_init() argument
/linux/rust/kernel/
H A Dmaple_tree.rs598 AllocError(kernel::alloc::AllocError), enumerator
622 pub struct AllocError<T> { struct
626 pub cause: AllocErrorKind, argument
635 AllocError(kernel::alloc::AllocError), argument
H A Dinit.rs148 E: From<AllocError>; in try_pin_init() argument
168 try_init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError> try_init() argument
H A Dalloc.rs23 pub struct AllocError; struct
184 alloc(layout: Layout, flags: Flags, nid: NumaNode) -> Result<NonNull<[u8]>, AllocError> alloc() argument
236 realloc( ptr: Option<NonNull<u8>>, layout: Layout, old_layout: Layout, flags: Flags, nid: NumaNode, ) -> Result<NonNull<[u8]>, AllocError> realloc() argument
H A Dstr.rs232 to_cstring(&self) -> Result<CString, AllocError> to_cstring() argument
265 to_ascii_lowercase(&self) -> Result<CString, AllocError> to_ascii_lowercase() argument
276 to_ascii_uppercase(&self) -> Result<CString, AllocError> to_ascii_uppercase() argument
344 to_cstring(&self) -> Result<CString, AllocError> to_cstring() argument
358 to_ascii_lowercase(&self) -> Result<CString, AllocError> to_ascii_lowercase() argument
366 to_ascii_uppercase(&self) -> Result<CString, AllocError> to_ascii_uppercase() argument
889 try_from(cstr: &'a CStr) -> Result<CString, AllocError> try_from() argument
H A Did_pool.rs89 pub fn realloc(&self, flags: Flags) -> Result<PoolResizer, AllocError> { in realloc() argument
114 pub fn with_capacity(num_ids: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() argument
H A Dbitmap.rs248 pub fn new(nbits: usize, flags: Flags) -> Result<Self, AllocError> { in new() argument
[all...]
/linux/rust/kernel/list/
H A Darc.rs173 new(contents: T, flags: Flags) -> Result<Self, AllocError> new() argument
185 pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, pin_init() argument
196 init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> where E: From<AllocError>, init() argument
/linux/drivers/android/binder/
H A Dfreeze.rs72 fn new(flags: kernel::alloc::Flags) -> Result<UninitFM, AllocError> { in new() argument
322 fn find_freeze_recipients(&self) -> Result<KVVec<(DArc<Node>, Arc<Process>)>, AllocError> { in find_freeze_recipients() argument
370 pub(crate) fn prepare_freeze_messages(&self) -> Result<FreezeMessages, AllocError> { in prepare_freeze_messages() argument
H A Drust_binder_main.rs203 fn arc_try_new(val: T) -> Result<DLArc<T>, kernel::alloc::AllocError> { in arc_try_new()