Home
last modified time | relevance | path

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

/linux-6.14.4/rust/kernel/alloc/
Dallocator.rs89 ) -> Result<NonNull<[u8]>, AllocError> { in call() argument
136 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
153 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
177 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
Dkvec.rs285 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push() argument
315 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity() argument
416 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> { in reserve() argument
459 pub fn extend_with(&mut self, n: usize, value: T, flags: Flags) -> Result<(), AllocError> { in extend_with() argument
498 pub fn extend_from_slice(&mut self, other: &[T], flags: Flags) -> Result<(), AllocError> { in extend_from_slice() argument
514 pub fn from_elem(value: T, n: usize, flags: Flags) -> Result<Self, AllocError> { in from_elem() argument
Dkbox.rs210 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
229 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit() argument
338 E: From<AllocError>, in try_pin_init()
346 E: From<AllocError>, in try_init()
Dallocator_test.rs43 ) -> Result<NonNull<[u8]>, AllocError> { in realloc() argument
/linux-6.14.4/rust/kernel/
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
Dinit.rs1209 E: From<AllocError>; in try_pin_init()
1229 E: From<AllocError>; in try_init()
1250 E: From<AllocError>, in try_pin_init()
1258 E: From<AllocError>, in try_init()
1270 E: From<AllocError>, in try_pin_init()
1278 E: From<AllocError>, in try_init()
Dstr.rs312 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() argument
355 pub fn to_ascii_lowercase(&self) -> Result<CString, AllocError> { in to_ascii_lowercase() argument
372 pub fn to_ascii_uppercase(&self) -> Result<CString, AllocError> { in to_ascii_uppercase() argument
881 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from() argument
Dpage.rs72 pub fn alloc_page(flags: Flags) -> Result<Self, AllocError> { in alloc_page() argument
Dworkqueue.rs216 ) -> Result<(), AllocError> { in try_spawn() argument
/linux-6.14.4/rust/kernel/list/
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-6.14.4/rust/kernel/sync/
Darc.rs207 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
664 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new() argument
672 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit() argument