Home
last modified time | relevance | path

Searched refs:from_foreign (Results 1 – 8 of 8) sorted by relevance

/rust/kernel/
A Dtypes.rs63 unsafe fn from_foreign(ptr: *mut c_void) -> Self; in from_foreign() method
81 unsafe { Some(Self::from_foreign(ptr)) } in try_from_foreign()
140 unsafe fn from_foreign(_: *mut c_void) -> Self {} in from_foreign() method
A Dxarray.rs71 drop(unsafe { T::from_foreign(ptr) }) in drop()
255 let value = unsafe { T::from_foreign(new) }; in store()
A Ddevres.rs311 drop(unsafe { P::from_foreign(ptr.cast()) }); in register_foreign()
A Ddevice.rs107 unsafe { T::from_foreign(ptr.cast()) } in drvdata_obtain()
A Dmiscdevice.rs238 let ptr = unsafe { <T::Ptr as ForeignOwnable>::from_foreign(private) }; in release()
A Dcpufreq.rs667 unsafe { <T as ForeignOwnable>::from_foreign(self.as_ref().driver_data.cast()) }, in clear_data()
/rust/kernel/alloc/
A Dkbox.rs417 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in from_foreign() function
452 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in from_foreign() function
/rust/kernel/sync/
A Darc.rs388 unsafe fn from_foreign(ptr: *mut c_void) -> Self { in from_foreign() method

Completed in 15 milliseconds