Home
last modified time | relevance | path

Searched refs:borrow (Results 1 – 9 of 9) sorted by relevance

/rust/kernel/
A Dmiscdevice.rs261 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private.cast()) }; in mmap()
282 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in ioctl()
307 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in compat_ioctl()
328 let device = unsafe { <T::Ptr as ForeignOwnable>::borrow(private) }; in show_fdinfo()
A Dtypes.rs98 unsafe fn borrow<'a>(ptr: *mut c_void) -> Self::Borrowed<'a>; in borrow() method
142 unsafe fn borrow<'a>(_: *mut c_void) -> Self::Borrowed<'a> {} in borrow() method
A Dxarray.rs195 unsafe { T::borrow(ptr.as_ptr()) } in get()
A Ddevice.rs127 unsafe { T::borrow(ptr.cast()) } in drvdata_borrow()
A Dcpufreq.rs640 Some(unsafe { T::borrow(self.as_ref().driver_data.cast()) }) in data()
/rust/kernel/alloc/
A Dkbox.rs9 use core::borrow::{Borrow, BorrowMut};
423 unsafe fn borrow<'a>(ptr: *mut c_void) -> &'a T { in borrow() function
458 unsafe fn borrow<'a>(ptr: *mut c_void) -> Pin<&'a T> { in borrow() function
531 fn borrow(&self) -> &T { in borrow() function
A Dkvec.rs11 borrow::{Borrow, BorrowMut},
915 fn borrow(&self) -> &[T] { in borrow() function
/rust/kernel/sync/
A Darc.rs29 borrow::{Borrow, BorrowMut},
399 unsafe fn borrow<'a>(ptr: *mut c_void) -> ArcBorrow<'a, T> { in borrow() method
412 unsafe { <Self as ForeignOwnable>::borrow(ptr) } in borrow_mut()
452 fn borrow(&self) -> &T { in borrow() method
885 fn borrow(&self) -> &T { in borrow() method
/rust/pin-init/src/
A D__internal.rs193 use ::std::{borrow::ToOwned, println, string::String}; in stack_init_reuse()

Completed in 20 milliseconds