/kernel/linux/linux-6.6/rust/kernel/ |
H A D | init.rs | 71 //! let foo: Result<Pin<Box<Foo>>> = Box::pin_init(foo); 83 //! let mtx: Result<Arc<Mutex<usize>>> = Arc::pin_init(new_mutex!(42, "example::mtx")); 306 /// stack_try_pin_init!(let foo: Result<Pin<&mut Foo>, AllocError> = pin_init!(Foo { 777 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>; in __pinned_init() 820 F: FnOnce(Pin<&mut T>) -> Result<(), E>, in pin_chain() 836 F: FnOnce(Pin<&mut T>) -> Result<(), E>, 838 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() 891 unsafe fn __init(self, slot: *mut T) -> Result<(), E>; in __init() 922 F: FnOnce(&mut T) -> Result<(), E>, in chain() 937 F: FnOnce(&mut T) -> Result<(), [all...] |
H A D | str.rs | 113 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { 178 pub fn to_str(&self) -> Result<&str, core::str::Utf8Error> { in to_str() 206 pub fn to_cstring(&self) -> Result<CString, AllocError> { in to_cstring() 227 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 257 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 459 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() 511 fn write_str(&mut self, s: &str) -> fmt::Result { in write_str() 553 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt() 599 fn try_from(cstr: &'a CStr) -> Result<CString, AllocError> { in try_from()
|
H A D | error.rs | 156 /// kernel function so that tests that use this (e.g., by calling [`Result::unwrap`]) can still 165 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in name() 219 /// A [`Result`] with an [`Error`] error type. 232 /// a [`Result`]. Since in the kernel many functions return an error code, 233 /// [`Result`] is a type alias for a [`core::result::Result`] that uses 237 /// it should still be modeled as returning a `Result` rather than 239 pub type Result<T = (), E = Error> = core::result::Result<T, E>; types 243 pub fn to_result(err: core::ffi::c_int) -> Result { in to_result() [all...] |
/kernel/linux/linux-6.6/rust/kernel/init/ |
H A D | __internal.rs | 27 F: FnOnce(*mut T) -> Result<(), E>, 30 unsafe fn __init(self, slot: *mut T) -> Result<(), E> { in __init() 39 F: FnOnce(*mut T) -> Result<(), E>, 42 unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E> { in __pinned_init() 70 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure() 99 F: FnOnce(*mut Self::Datee) -> Result<O, E>, in make_closure() 165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init()
|
/kernel/linux/linux-6.6/rust/alloc/vec/ |
H A D | spec_extend.rs | 18 fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError>; in try_spec_extend() 35 default fn try_spec_extend(&mut self, iter: I) -> Result<(), TryReserveError> { 54 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { 70 fn try_spec_extend(&mut self, mut iterator: IntoIter<T>) -> Result<(), TryReserveError> { in try_spec_extend() 95 default fn try_spec_extend(&mut self, iterator: I) -> Result<(), TryReserveError> { 115 fn try_spec_extend(&mut self, iterator: slice::Iter<'a, T>) -> Result<(), TryReserveError> { in try_spec_extend()
|
H A D | mod.rs | 536 pub fn try_with_capacity(capacity: usize) -> Result<Self, TryReserveError> { in try_with_capacity() 787 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() 1077 /// fn process_data(data: &[u32]) -> Result<Vec<u32>, TryReserveError> { 1093 pub fn try_reserve(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve() 1120 /// fn process_data(data: &[u32]) -> Result<Vec<u32>, TryReserveError> { 1136 pub fn try_reserve_exact(&mut self, additional: usize) -> Result<(), TryReserveError> { in try_reserve_exact() 1967 pub fn try_push(&mut self, value: T) -> Result<(), TryReserveError> { in try_push() 1997 /// fn from_iter_fallible<T>(iter: impl Iterator<Item=T>) -> Result<Vec<T>, TryReserveError> { 2012 pub fn push_within_capacity(&mut self, value: T) -> Result<(), T> { in push_within_capacity() 2090 unsafe fn try_append_elements(&mut self, other: *const [T]) -> Result<(), TryReserveErro [all...] |
H A D | into_iter.rs | 53 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 219 fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize> { in advance_by() 242 fn next_chunk<const N: usize>(&mut self) -> Result<[T; N], core::array::IntoIter<T, N>> { in next_chunk() 316 fn advance_back_by(&mut self, n: usize) -> Result<(), NonZeroUsize> { in advance_back_by()
|
H A D | drain.rs | 40 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt()
|
/kernel/linux/linux-6.6/rust/kernel/sync/ |
H A D | arc.rs | 165 pub fn try_new(contents: T) -> Result<Self, AllocError> { in try_new() 184 pub fn pin_init<E>(init: impl PinInit<T, E>) -> error::Result<Self> in pin_init() 195 pub fn init<E>(init: impl Init<T, E>) -> error::Result<Self> in init() 461 /// fn test() -> Result<Arc<Example>> { 484 /// fn test() -> Result<Arc<Example>> { 504 /// fn test() -> Result<Arc<Example>> { 519 pub fn try_new(value: T) -> Result<Self, AllocError> { in try_new() 527 pub fn try_new_uninit() -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in try_new_uninit() 566 pub fn init_with<E>(mut self, init: impl Init<T, E>) -> core::result::Result<UniqueArc<T>, E> { in init_with() 579 ) -> core::result::Result<Pi in pin_init_with() [all...] |
/kernel/linux/linux-6.6/rust/alloc/ |
H A D | raw_vec.rs | 138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() 212 fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in() 339 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve() 349 pub fn try_reserve_for_push(&mut self, len: usize) -> Result<(), TryReserveError> { in try_reserve_for_push() 380 ) -> Result<(), TryReserveError> { in try_reserve_exact() 422 fn grow_amortized(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_amortized() 451 fn grow_exact(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_exact() 468 fn shrink(&mut self, cap: usize) -> Result<(), TryReserveError> { in shrink() 504 new_layout: Result<Layout, LayoutError>, in finish_grow() 507 ) -> Result<NonNul in finish_grow() [all...] |
H A D | alloc.rs | 178 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() 198 ) -> Result<NonNull<[u8]>, AllocError> { in grow_impl() 242 fn allocate(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate() 247 fn allocate_zeroed(&self, layout: Layout) -> Result<NonNull<[u8]>, AllocError> { in allocate_zeroed() 266 ) -> Result<NonNull<[u8]>, AllocError> { in grow() 277 ) -> Result<NonNull<[u8]>, AllocError> { in grow_zeroed() 288 ) -> Result<NonNull<[u8]>, AllocError> { in shrink()
|
H A D | boxed.rs | 306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() 333 pub fn try_new_uninit() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_uninit() 359 pub fn try_new_zeroed() -> Result<Box<mem::MaybeUninit<T>>, AllocError> { in try_new_zeroed() 410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in() 482 pub fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_uninit_in() 556 pub fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError> in try_new_zeroed_in() 689 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_uninit_slice() 723 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> { in try_new_zeroed_slice() 1678 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { in try_from() 1710 fn try_from(vec: Vec<T>) -> Result<Sel [all...] |
/kernel/linux/linux-5.10/tools/memory-model/scripts/ |
H A D | cmplitmushist.sh | 54 echo ' !!!' Result changed: $2 83 echo "!!!" Result changed: $badcompare 1>&2
|
/kernel/linux/linux-6.6/scripts/ |
H A D | generate_rust_target.rs | 15 fmt::{Display, Formatter, Result}, 31 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt() 93 fn fmt(&self, formatter: &mut Formatter<'_>) -> Result { in fmt()
|
/kernel/linux/linux-6.6/tools/memory-model/scripts/ |
H A D | cmplitmushist.sh | 91 echo ' !!!' Result changed: $2 128 echo "!!!" Result changed: $badcompare 1>&2
|
/kernel/linux/linux-5.10/arch/sh/lib/ |
H A D | lshrsi3.S | 30 ! r0: Result 45 ! r0: Result
|
H A D | ashlsi3.S | 30 ! r0: Result 45 ! r0: Result
|
H A D | ashrsi3.S | 30 ! r0: Result 45 ! r0: Result
|
/kernel/linux/linux-6.6/arch/sh/lib/ |
H A D | lshrsi3.S | 30 ! r0: Result 45 ! r0: Result
|
H A D | ashrsi3.S | 30 ! r0: Result 45 ! r0: Result
|
H A D | ashlsi3.S | 30 ! r0: Result 45 ! r0: Result
|
/kernel/linux/linux-6.6/rust/kernel/sync/arc/ |
H A D | std_vendor.rs | 13 pub fn downcast<T>(self) -> core::result::Result<Arc<T>, Self> in downcast()
|
/kernel/linux/linux-6.6/samples/rust/ |
H A D | rust_print.rs | 18 fn arc_print() -> Result { in arc_print() 43 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
|
/kernel/linux/linux-5.10/arch/m68k/ifpsp060/src/ |
H A D | fplsp.S | 610 # Result is now in FP0 668 # Result is now in FP0 726 # Result is now in FP0 787 # Result is now in FP0 845 # Result is now in FP0 903 # Result is now in FP0 964 # Result is now in FP0 1022 # Result is now in FP0 1080 # Result is now in FP0 1141 # Result i [all...] |
/kernel/linux/linux-6.6/arch/m68k/ifpsp060/src/ |
H A D | fplsp.S | 610 # Result is now in FP0 668 # Result is now in FP0 726 # Result is now in FP0 787 # Result is now in FP0 845 # Result is now in FP0 903 # Result is now in FP0 964 # Result is now in FP0 1022 # Result is now in FP0 1080 # Result is now in FP0 1141 # Result i [all...] |