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.rs79 ) -> Result<NonNull<[u8]>, AllocError> { in call() argument
137 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
156 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
180 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
H A Dkvec.rs312 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument
488 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() argument
609 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() argument
726 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() argument
765 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice() argument
781 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> { in from_elem() argument
806 pub fn resize(&mut self, new_len: usize, value: T, flags: Flags) -> Result<(), AllocError> { in resize() argument
H A Dkbox.rs255 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
274 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit() argument
389 E: From<AllocError>, in try_pin_init()
397 E: From<AllocError>, in try_init()
H A Dallocator_test.rs54 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
/linux/rust/kernel/
H A Dalloc.rs30 pub struct AllocError; struct
156 fn alloc(layout: Layout, flags: Flags) -> Result<NonNull<[u8]>, AllocError> { in alloc() argument
199 ) -> Result<NonNull<[u8]>, AllocError>; in realloc() argument
H A Dinit.rs149 E: From<AllocError>; in try_pin_init()
169 E: From<AllocError>; in try_init()
H A Dcpumask.rs224 pub fn new_zero(_flags: Flags) -> Result<Self, AllocError> { in new_zero() argument
249 pub unsafe fn new(_flags: Flags) -> Result<Self, AllocError> { in new() argument
H A Dstr.rs389 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument
432 pub fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() argument
449 pub fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() argument
948 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() argument
H A Dpage.rs73 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { in alloc_page() argument
H A Dworkqueue.rs338 ) -> Result<(), AllocError> { in try_spawn() argument
/linux/rust/kernel/sync/
H A Darc.rs213 E: From<AllocError>, in try_pin_init()
221 E: From<AllocError>, in try_init()
229 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
728 E: From<AllocError>, in try_pin_init()
736 E: From<AllocError>, in try_init()
766 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
774 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit() 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()