Searched refs:AsBytes (Results 1 – 4 of 4) sorted by relevance
| /linux-6.15/rust/kernel/ |
| H A D | transmute.rs | 50 pub unsafe trait AsBytes {} trait 55 $(unsafe impl$($($generics)*)? AsBytes for $t {})* 69 {<T: AsBytes>} [T], 70 {<T: AsBytes, const N: usize>} [T; N],
|
| H A D | dma.rs | 12 transmute::{AsBytes, FromBytes}, 132 pub struct CoherentAllocation<T: AsBytes + FromBytes> { 140 impl<T: AsBytes + FromBytes> CoherentAllocation<T> { 270 pub unsafe fn field_write<F: AsBytes>(&self, field: *mut F, val: F) { in field_write() 286 impl<T: AsBytes + FromBytes> Drop for CoherentAllocation<T> { 306 unsafe impl<T: AsBytes + FromBytes + Send> Send for CoherentAllocation<T> {}
|
| H A D | uaccess.rs | 13 transmute::{AsBytes, FromBytes}, 346 pub fn write<T: AsBytes>(&mut self, value: &T) -> Result { in write()
|
| /linux-6.15/samples/rust/ |
| H A D | rust_dma.rs | 33 unsafe impl kernel::transmute::AsBytes for MyStruct {}
|