| /linux/rust/kernel/ |
| H A D | maple_tree.rs | 192 InsertErrorKind::AllocError(kernel::alloc::AllocError) in insert_range() 446 ) -> Result<usize, AllocError<T>> in alloc_range() 451 return Err(AllocError { in alloc_range() 478 AllocErrorKind::AllocError(kernel::alloc::AllocError) in alloc_range() 484 Err(AllocError { value, cause }) in alloc_range() 598 AllocError(kernel::alloc::AllocError), enumerator 608 InsertErrorKind::AllocError(kernel::alloc::AllocError) => ENOMEM, in from() 622 pub struct AllocError<T> { struct 635 AllocError(kernel::alloc::AllocError), argument 645 AllocErrorKind::AllocError(kernel::alloc::AllocError) => ENOMEM, in from() [all …]
|
| H A D | bitmap.rs | 9 use crate::alloc::{AllocError, Flags}; 248 pub fn new(nbits: usize, flags: Flags) -> Result<Self, AllocError> { in new() argument 256 return Err(AllocError); in new() 261 let ptr = NonNull::new(ptr).ok_or(AllocError)?; in new() 529 fn bitmap_vec_new() -> Result<(), AllocError> { in bitmap_vec_new() 546 fn bitmap_set_clear_find() -> Result<(), AllocError> { in bitmap_set_clear_find() 576 fn owned_bitmap_out_of_bounds() -> Result<(), AllocError> { in owned_bitmap_out_of_bounds() 604 fn bitmap_copy_and_extend() -> Result<(), AllocError> { in bitmap_copy_and_extend()
|
| H A D | str.rs | 6 alloc::{flags::*, AllocError, KVec}, 232 fn to_cstring(&self) -> Result<CString, AllocError>; 265 fn to_ascii_lowercase(&self) -> Result<CString, AllocError>; 276 fn to_ascii_uppercase(&self) -> Result<CString, AllocError>; 344 fn to_cstring(&self) -> Result<CString, AllocError> { 358 fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() 366 fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() 887 type Error = AllocError; 889 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { 231 to_cstring(&self) -> Result<CString, AllocError> to_cstring() argument 264 to_ascii_lowercase(&self) -> Result<CString, AllocError> to_ascii_lowercase() argument 275 to_ascii_uppercase(&self) -> Result<CString, AllocError> to_ascii_uppercase() argument 341 to_cstring(&self) -> Result<CString, AllocError> to_cstring() argument 355 to_ascii_lowercase(&self) -> Result<CString, AllocError> to_ascii_lowercase() argument 363 to_ascii_uppercase(&self) -> Result<CString, AllocError> to_ascii_uppercase() argument 870 try_from(cstr: &'a CStr) -> Result<CString, AllocError> try_from() argument
|
| H A D | init.rs | 129 alloc::{AllocError, Flags}, 148 E: From<AllocError>; in try_pin_init() argument 168 E: From<AllocError>; in try_init() argument
|
| H A D | id_pool.rs | 7 use crate::alloc::{AllocError, Flags}; 89 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 D | alloc.rs | 23 pub struct AllocError; struct 184 fn alloc(layout: Layout, flags: Flags, nid: NumaNode) -> Result<NonNull<[u8]>, AllocError> { in alloc() argument 236 ) -> Result<NonNull<[u8]>, AllocError>; in realloc() argument
|
| H A D | error.rs | 10 alloc::{layout::LayoutError, AllocError}, 218 impl From<AllocError> for Error { 220 fn from(_: AllocError) -> Error { in from()
|
| /linux/rust/pin-init/src/ |
| H A D | alloc.rs | 6 use core::alloc::AllocError; 12 type AllocError = core::convert::Infallible; typedef 32 E: From<AllocError>; in try_pin_init() argument 38 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> { in pin_init() argument 52 E: From<AllocError>; in try_init() argument 55 fn init(init: impl Init<T>) -> Result<Self, AllocError> { in init() argument 84 E: From<AllocError>, in try_pin_init() argument 92 E: From<AllocError>, in try_init() argument 102 E: From<AllocError>, in try_pin_init() argument 120 E: From<AllocError>, in try_init() argument
|
| /linux/rust/kernel/alloc/ |
| H A D | allocator.rs | 16 use crate::alloc::{AllocError, Allocator, NumaNode}; 91 ) -> Result<NonNull<[u8]>, AllocError> { in call() argument 120 NonNull::new(raw_ptr).ok_or(AllocError)? in call() 152 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument 222 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument 243 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
|
| H A D | kvec.rs | 8 AllocError, Allocator, Box, Flags, NumaNode, 325 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument 501 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() argument 622 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() argument 632 return Err(AllocError); in reserve() 637 let new_cap = core::cmp::max(cap * 2, len.checked_add(additional).ok_or(AllocError)?); in reserve() 638 let layout = ArrayLayout::new(new_cap).map_err(|_| AllocError)?; in reserve() 740 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() argument 779 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice() argument 795 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> { in from_elem() argument [all …]
|
| H A D | kbox.rs | 7 use super::{AllocError, Allocator, Flags, NumaNode}; 231 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in assume_init() 250 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { 262 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> 319 E: From<AllocError>, 442 E: From<AllocError>, in write_init() 450 E: From<AllocError>, in write_pin_init() 256 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/drivers/android/binder/ |
| H A D | freeze.rs | 6 alloc::AllocError, 72 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 360 AllocError in find_freeze_recipients() 370 pub(crate) fn prepare_freeze_messages(&self) -> Result<FreezeMessages, AllocError> { in prepare_freeze_messages() argument
|
| H A D | error.rs | 71 impl From<kernel::alloc::AllocError> for BinderError { 72 fn from(_: kernel::alloc::AllocError) -> Self { in from()
|
| H A D | rust_binder_main.rs | 202 fn arc_try_new(val: T) -> Result<DLArc<T>, kernel::alloc::AllocError> { in arc_try_new() 210 .map_err(|_| kernel::alloc::AllocError) 200 arc_try_new(val: T) -> Result<DLArc<T>, kernel::alloc::AllocError> arc_try_new() argument
|
| H A D | process.rs | 1499 Err(kernel::alloc::AllocError) => { in ioctl_freeze()
|
| /linux/rust/pin-init/examples/ |
| H A D | pthread_mutex.rs | 12 use core::alloc::AllocError; 59 impl From<AllocError> for Error { in from() 60 fn from(_: AllocError) -> Self { in from()
|
| /linux/rust/kernel/list/ |
| H A D | arc.rs | 7 use crate::alloc::{AllocError, Flags}; 174 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() 186 E: From<AllocError>, in pin_init() 197 E: From<AllocError>, in init() 173 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/rust/pin-init/ |
| H A D | README.md | 112 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);
|