Home
last modified time | relevance | path

Searched defs:T (Results 1 – 20 of 20) sorted by relevance

/rust/kernel/alloc/
Dkbox.rs195 pub fn into_raw(b: Self) -> *mut T { in into_raw()
203 pub fn leak<'a>(b: Self) -> &'a mut T { in leak()
222 pub unsafe fn assume_init(self) -> Box<T, A> { in assume_init()
232 pub fn write(mut self, value: T) -> Box<T, A> { in write()
248 pub fn new(x: T, flags: Flags) -> Result<Self, AllocError> { in new()
267 pub fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>, A>, AllocError> { in new_uninit()
279 pub fn pin(x: T, flags: Flags) -> Result<Pin<Box<T, A>>, AllocError> in pin()
287 fn forget_contents(this: Self) -> Box<MaybeUninit<T>, A> { in forget_contents()
307 pub fn drop_contents(this: Self) -> Box<MaybeUninit<T>, A> { in drop_contents()
318 pub fn into_inner(b: Self) -> T { in into_inner()
[all …]
Dkvec.rs217 unsafe fn dec_len(&mut self, count: usize) -> &mut [T] { in dec_len()
230 pub fn as_slice(&self) -> &[T] { in as_slice()
236 pub fn as_mut_slice(&mut self) -> &mut [T] { in as_mut_slice()
243 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr()
250 pub fn as_ptr(&self) -> *const T { in as_ptr()
289 pub fn spare_capacity_mut(&mut self) -> &mut [MaybeUninit<T>] { in spare_capacity_mut()
314 pub fn push(&mut self, v: T, flags: Flags) -> Result<(), AllocError> { in push()
337 pub fn push_within_capacity(&mut self, v: T) -> Result<(), PushError<T>> { in push_within_capacity()
352 unsafe fn push_within_capacity_unchecked(&mut self, v: T) { in push_within_capacity_unchecked()
387 element: T, in insert_within_capacity()
[all …]
/rust/kernel/
Dlist.rs262 item: ListArc<T, ID>, in insert_inner()
305 pub fn push_back(&mut self, item: ListArc<T, ID>) { in push_back()
313 pub fn push_front(&mut self, item: ListArc<T, ID>) { in push_front()
324 pub fn pop_back(&mut self) -> Option<ListArc<T, ID>> { in pop_back()
336 pub fn pop_front(&mut self) -> Option<ListArc<T, ID>> { in pop_front()
353 pub unsafe fn remove(&mut self, item: &T) -> Option<ListArc<T, ID>> { in remove()
394 unsafe fn remove_internal(&mut self, item: *mut ListLinksFields) -> ListArc<T, ID> { in remove_internal()
413 ) -> ListArc<T, ID> { in remove_internal_inner()
461 pub fn push_all_back(&mut self, other: &mut List<T, ID>) { in push_all_back()
490 pub fn cursor_front(&mut self) -> Cursor<'_, T, ID> { in cursor_front() argument
[all …]
Dinit.rs885 fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E> in pin_chain() argument
984 fn chain<F>(self, f: F) -> ChainInit<Self, F, T, E> in chain() argument
1040 ) -> impl PinInit<T, E> { in pin_init_from_closure()
1059 ) -> impl Init<T, E> { in init_from_closure()
1067 pub fn uninit<T, E>() -> impl Init<MaybeUninit<T>, E> { in uninit() argument
1082 pub fn init_array_from_fn<I, const N: usize, T, E>( in init_array_from_fn() argument
1086 I: Init<T, E>,
1126 pub fn pin_init_array_from_fn<I, const N: usize, T, E>( in pin_init_array_from_fn() argument
1130 I: PinInit<T, E>,
1161 unsafe impl<T, E> Init<T, E> for T { implementation
[all …]
Dtypes.rs162 pub fn new_with_data(data: T, cleanup_func: F) -> Self { in new_with_data()
168 pub fn dismiss(mut self) -> T { in dismiss()
185 fn deref(&self) -> &T { in deref()
192 fn deref_mut(&mut self) -> &mut T { in deref_mut()
269 pub const fn get(&self) -> *mut T { in get()
277 pub const fn raw_get(this: *const Self) -> *mut T { in raw_get()
393 pub fn into_raw(me: Self) -> NonNull<T> { in into_raw()
Derror.rs155 pub fn to_ptr<T>(self) -> *mut T { in to_ptr()
288 pub fn from_err_ptr<T>(ptr: *mut T) -> Result<*mut T> { in from_err_ptr()
334 pub fn from_result<T, F>(f: F) -> T in from_result()
337 F: FnOnce() -> Result<T>, in from_result()
Dpage.rs105 fn with_page_mapped<T>(&self, f: impl FnOnce(*mut u8) -> T) -> T { in with_page_mapped()
150 f: impl FnOnce(*mut u8) -> Result<T>, in with_pointer_into_page()
Dworkqueue.rs212 func: T, in try_spawn()
235 fn project(self: Pin<&mut Self>) -> &mut Option<T> { in project()
455 unsafe fn raw_get_work(ptr: *mut Self) -> *mut Work<T, ID> { in raw_get_work()
466 unsafe fn work_container_of(ptr: *mut Work<T, ID>) -> *mut Self in work_container_of()
Duaccess.rs253 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
420 (value as *const T).cast::<c_void>(), in write() constant
Dmiscdevice.rs263 bindings::_copy_to_iter((value as *const T).cast::<c_void>(), len, self.inner.get()) in copy_to_iter() constant
/rust/kernel/list/
Darc.rs172 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
182 pub fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> Result<Self, E> in pin_init()
193 pub fn init<E>(init: impl Init<T, E>, flags: Flags) -> Result<Self, E> in init()
236 pub fn pair_from_unique<const ID2: u64>(unique: UniqueArc<T>) -> (Self, ListArc<T, ID2>) in pair_from_unique()
248 mut unique: Pin<UniqueArc<T>>, in pair_from_pin_unique()
249 ) -> (Self, ListArc<T, ID2>) in pair_from_pin_unique()
336 fn transmute_to_arc(self) -> Arc<T> { in transmute_to_arc()
348 pub fn into_raw(self) -> *const T { in into_raw()
370 pub fn into_arc(self) -> Arc<T> { in into_arc()
379 pub fn clone_arc(&self) -> Arc<T> { in clone_arc()
[all …]
Darc_field.rs37 pub fn get_mut(&mut self) -> &mut T { in get_mut()
47 pub unsafe fn assert_ref(&self) -> &T { in assert_ref()
60 pub unsafe fn assert_mut(&self) -> &mut T { in assert_mut()
/rust/kernel/sync/
Darc.rs147 unsafe fn container_of(ptr: *const T) -> NonNull<ArcInner<T>> { in container_of()
195 pub fn new(contents: T, flags: Flags) -> Result<Self, AllocError> { in new()
232 pub fn into_raw(self) -> *const T { in into_raw()
260 pub fn as_arc_borrow(&self) -> ArcBorrow<'_, T> { in as_arc_borrow() argument
306 pub fn into_unique_or_drop(self) -> Option<Pin<UniqueArc<T>>> { in into_unique_or_drop()
342 unsafe fn borrow<'a>(ptr: *const crate::ffi::c_void) -> ArcBorrow<'a, T> { in borrow() argument
371 fn as_ref(&self) -> &T { in as_ref()
636 pub fn new(value: T, flags: Flags) -> Result<Self, AllocError> { in new()
644 pub fn new_uninit(flags: Flags) -> Result<UniqueArc<MaybeUninit<T>>, AllocError> { in new_uninit()
664 pub fn write(mut self, value: T) -> UniqueArc<T> { in write()
[all …]
Dcondvar.rs117 fn wait_internal<T: ?Sized, B: Backend>( in wait_internal() argument
148 pub fn wait<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) { in wait() argument
159 pub fn wait_interruptible<T: ?Sized, B: Backend>(&self, guard: &mut Guard<'_, T, B>) -> bool { in wait_interruptible() argument
171 pub fn wait_interruptible_freezable<T: ?Sized, B: Backend>( in wait_interruptible_freezable() argument
189 pub fn wait_interruptible_timeout<T: ?Sized, B: Backend>( in wait_interruptible_timeout() argument
Dlock.rs124 pub fn new(t: T, name: &'static CStr, key: &'static LockClassKey) -> impl PinInit<Self> { in new()
139 pub fn lock(&self) -> Guard<'_, T, B> { in lock() argument
150 pub fn try_lock(&self) -> Option<Guard<'_, T, B>> { in try_lock() argument
174 pub fn lock_ref(&self) -> &'a Lock<T, B> { in lock_ref()
219 pub(crate) unsafe fn new(lock: &'a Lock<T, B>, state: B::GuardState) -> Self { in new()
Dlocked_by.rs157 pub fn access_mut<'a>(&'a self, owner: &'a mut U) -> &'a mut T { in access_mut()
/rust/kernel/sync/arc/
Dstd_vendor.rs15 pub fn downcast<T>(self) -> core::result::Result<Arc<T>, Self> in downcast()
/rust/kernel/sync/lock/
Dglobal.rs156 pub fn as_ref<'a>(&'a self, _guard: &'a GlobalGuard<B>) -> &'a T { in as_ref()
164 pub fn as_mut<'a>(&'a self, _guard: &'a mut GlobalGuard<B>) -> &'a mut T { in as_mut()
173 pub fn get_mut(&mut self) -> &mut T { in get_mut()
/rust/kernel/block/mq/
Dgen_disk.rs94 tagset: Arc<TagSet<T>>, in build()
95 ) -> Result<GenDisk<T>> { in build()
/rust/kernel/init/
D__internal.rs124 unsafe impl<T: ?Sized> HasInitData for T { implementation
170 pub fn init<E>(self: Pin<&mut Self>, init: impl PinInit<T, E>) -> Result<Pin<&mut T>, E> { in init() method