Home
last modified time | relevance | path

Searched refs:FromBytes (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/rust/kernel/
H A Dtransmute.rs15 pub unsafe trait FromBytes {} trait
20 $(unsafe impl$($($generics)*)? FromBytes for $t {})*
31 {<T: FromBytes>} [T],
32 {<T: FromBytes, const N: usize>} [T; N],
H A Ddma.rs12 transmute::{AsBytes, FromBytes},
132 pub struct CoherentAllocation<T: AsBytes + FromBytes> {
140 impl<T: AsBytes + FromBytes> CoherentAllocation<T> {
247 pub unsafe fn field_read<F: FromBytes>(&self, field: *const F) -> F { in field_read()
286 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> {
306 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {}
H A Duaccess.rs13 transmute::{AsBytes, FromBytes},
253 pub fn read<T: FromBytes>(&mut self) -> Result<T> { in read()
/linux-6.15/samples/rust/
H A Drust_dma.rs35 unsafe impl kernel::transmute::FromBytes for MyStruct {}