/linux-6.8/rust/kernel/ |
D | types.rs | 48 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self; in from_foreign() 66 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign() 82 unsafe fn from_foreign(_: *const core::ffi::c_void) -> Self {} in from_foreign() 160 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data() 216 pub const fn new(value: T) -> Self { in new() 239 pub fn ffi_init(init_func: impl FnOnce(*mut T)) -> impl PinInit<Self> { in ffi_init() 297 unsafe fn dec_ref(obj: NonNull<Self>); in dec_ref() 339 pub unsafe fn from_raw(ptr: NonNull<T>) -> Self { in from_raw() 350 fn clone(&self) -> Self { in clone() 367 fn from(b: &T) -> Self { in from()
|
D | init.rs | 818 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() 920 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() 1118 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 1138 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init() 1157 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 1171 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init() 1187 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E> in try_pin_init() 1201 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E> in try_init() 1251 fn drop(self: Pin<&mut Self>, only_call_from_drop: __internal::OnlyCallFromDrop); in drop()
|
D | str.rs | 98 pub unsafe fn from_char_ptr<'a>(ptr: *const core::ffi::c_char) -> &'a Self { in from_char_ptr() 113 pub const fn from_bytes_with_nul(bytes: &[u8]) -> Result<&Self, CStrConvertError> { in from_bytes_with_nul() 419 pub(crate) unsafe fn from_ptrs(pos: *mut u8, end: *mut u8) -> Self { in from_ptrs() 434 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer() 496 pub(crate) unsafe fn from_buffer(buf: *mut u8, len: usize) -> Self { in from_buffer() 553 pub fn try_from_fmt(args: fmt::Arguments<'_>) -> Result<Self, Error> { in try_from_fmt()
|
D | lib.rs | 76 fn init(module: &'static ThisModule) -> error::Result<Self>; in init()
|
D | task.rs | 157 unsafe fn dec_ref(obj: ptr::NonNull<Self>) { in dec_ref()
|
D | workqueue.rs | 239 fn run(mut this: Pin<Box<Self>>) { in run()
|
/linux-6.8/rust/kernel/sync/ |
D | arc.rs | 165 pub fn try_new(contents: T) -> Result<Self, AllocError> { in try_new() 210 unsafe fn from_inner(inner: NonNull<ArcInner<T>>) -> Self { in from_inner() 234 pub unsafe fn from_raw(ptr: *const T) -> Self { in from_raw() 273 pub fn ptr_eq(this: &Self, other: &Self) -> bool { in ptr_eq() 295 unsafe fn from_foreign(ptr: *const core::ffi::c_void) -> Self { in from_foreign() 320 fn clone(&self) -> Self { in clone() 353 fn from(item: UniqueArc<T>) -> Self { in from() 359 fn from(item: Pin<UniqueArc<T>>) -> Self { in from() 436 fn clone(&self) -> Self { in clone() 451 unsafe fn new(inner: NonNull<ArcInner<T>>) -> Self { in new() [all …]
|
D | lock.rs | 102 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new() 183 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
|
D | locked_by.rs | 95 pub fn new<B: Backend>(owner: &Lock<U, B>, data: T) -> Self { in new()
|
D | condvar.rs | 94 pub fn new(name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
|
/linux-6.8/rust/alloc/ |
D | boxed.rs | 219 pub fn new(x: T) -> Self { in new() 306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new() 410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in() 862 pub fn write(mut boxed: Self, value: T) -> Box<T, A> { in write() 954 pub unsafe fn from_raw(raw: *mut T) -> Self { in from_raw() 1010 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in() 1297 fn clone(&self) -> Self { in clone() 1324 fn clone_from(&mut self, source: &Self) { in clone_from() 1332 fn clone(&self) -> Self { in clone() 1458 fn from(t: T) -> Self { in from() [all …]
|
D | slice.rs | 118 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> in to_vec() 126 default fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec() 163 fn to_vec<A: Allocator>(s: &[Self], alloc: A) -> Vec<Self, A> { in to_vec() 463 pub fn into_vec<A: Allocator>(self: Box<Self, A>) -> Vec<T, A> { in into_vec() 704 fn join(slice: &Self, sep: Separator) -> Self::Output; in join() 727 fn join(slice: &Self, sep: &T) -> Vec<T> { in join() 750 fn join(slice: &Self, sep: &[T]) -> Vec<T> { in join()
|
D | raw_vec.rs | 93 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() 101 pub fn with_capacity_zeroed(capacity: usize) -> Self { in with_capacity_zeroed() 122 pub const fn new_in(alloc: A) -> Self { in new_in() 131 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() 138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() 146 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in() 177 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in() 212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in() 247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
|
D | alloc.rs | 424 unsafe fn write_clone_into_raw(&self, target: *mut Self); in write_clone_into_raw() 429 default unsafe fn write_clone_into_raw(&self, target: *mut Self) { in write_clone_into_raw() 438 unsafe fn write_clone_into_raw(&self, target: *mut Self) { in write_clone_into_raw()
|
/linux-6.8/rust/alloc/vec/ |
D | mod.rs | 481 pub fn with_capacity(capacity: usize) -> Self { in with_capacity() 536 pub fn try_with_capacity(capacity: usize) -> Result<Self, TryReserveError> { in try_with_capacity() 643 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts() 665 pub const fn new_in(alloc: A) -> Self { in new_in() 727 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in() 787 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in() 901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() 2123 pub fn append(&mut self, other: &mut Self) { in append() 2924 fn clone(&self) -> Self { in clone() 2934 fn clone(&self) -> Self { in clone() [all …]
|
D | set_len_on_drop.rs | 15 pub(super) fn new(len: &'a mut usize) -> Self { in new()
|
D | into_iter.rs | 390 fn clone(&self) -> Self { in clone() 394 fn clone(&self) -> Self { in clone()
|
/linux-6.8/rust/kernel/net/ |
D | phy.rs | 82 unsafe fn from_raw<'a>(ptr: *mut bindings::phy_device) -> &'a mut Self { in from_raw() 648 ) -> Result<Self> { in register() 684 pub const fn new_with_exact_mask(id: u32) -> Self { in new_with_exact_mask() 692 pub const fn new_with_model_mask(id: u32) -> Self { in new_with_model_mask() 700 pub const fn new_with_vendor_mask(id: u32) -> Self { in new_with_vendor_mask() 708 pub const fn new_with_custom_mask(id: u32, mask: u32) -> Self { in new_with_custom_mask() 716 pub const fn new_with_driver<T: Driver>() -> Self { in new_with_driver()
|
/linux-6.8/rust/kernel/init/ |
D | __internal.rs | 108 fn clone(&self) -> Self { in clone() 165 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init() 203 pub unsafe fn new(ptr: *mut T) -> Self { in new()
|
/linux-6.8/rust/alloc/collections/ |
D | mod.rs | 118 fn from(kind: TryReserveErrorKind) -> Self { in from() 127 fn from(_: LayoutError) -> Self { in from()
|
/linux-6.8/rust/macros/ |
D | module.rs | 32 fn new(module: &'a str) -> Self { in new() 103 fn parse(it: &mut token_stream::IntoIter) -> Self { in parse()
|
/linux-6.8/samples/rust/ |
D | rust_minimal.rs | 20 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
|
D | rust_print.rs | 43 fn init(_module: &'static ThisModule) -> Result<Self> { in init()
|