Home
last modified time | relevance | path

Searched defs:AllocError (Results 1 – 12 of 12) 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 ) -> Result<NonNull<[u8]>, AllocError> { in call() argument
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 Dkvec.rs325 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
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
820 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> { in resize() argument
H A Dkbox.rs256 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
275 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit() argument
344 E: From<AllocError>, in pin_slice()
467 E: From<AllocError>, in try_pin_init()
475 E: From<AllocError>, in try_init()
/linux/rust/kernel/
H A Dmaple_tree.rs589 AllocError(kernel::alloc::AllocError), enumerator
613 pub struct AllocError<T> { struct
617 pub cause: AllocErrorKind, argument
626 AllocError(kernel::alloc::AllocError), enumerator
H A Dinit.rs148 E: From<AllocError>; in try_pin_init()
168 E: From<AllocError>; in try_init()
H A Dalloc.rs23 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 Dstr.rs231 fn to_cstring(&self) -> Result<CString, AllocError>; in to_cstring() argument
264 fn to_ascii_lowercase(&self) -> Result<CString, AllocError>; in to_ascii_lowercase() argument
275 fn to_ascii_uppercase(&self) -> Result<CString, AllocError>; in to_ascii_uppercase() argument
341 fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument
355 fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() argument
363 fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() argument
870 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in 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
/linux/rust/kernel/list/
H A Darc.rs173 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
185 E: From<AllocError>, in pin_init()
196 E: From<AllocError>, in init()
/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