Searched refs:Zeroable (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/rust/macros/ |
H A D | zeroable.rs | 29 new_impl_generics.extend(quote! { : ::kernel::init::Zeroable }); in derive() 43 new_impl_generics.extend(quote! { ::kernel::init::Zeroable + }); in derive() 61 new_impl_generics.extend(quote! { : ::kernel::init::Zeroable }); in derive()
|
H A D | lib.rs | 350 #[proc_macro_derive(Zeroable)]
|
/openbmc/linux/rust/kernel/ |
H A D | init.rs | 1264 pub unsafe trait Zeroable {} interface 1270 pub fn zeroed<T: Zeroable>() -> impl Init<T> { in zeroed() 1283 $(unsafe impl$($($generics)*)? Zeroable for $t {})* 1311 {<T: ?Sized + Zeroable>} UnsafeCell<T>, 1339 {<const N: usize, T: Zeroable>} [T; N], {<T: Zeroable>} Wrapping<T>, 1346 unsafe impl<$first: Zeroable, $($t: Zeroable),*> Zeroable for ($first, $($t),*) {} impl
|
H A D | prelude.rs | 21 pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};
|
/openbmc/linux/rust/kernel/init/ |
H A D | macros.rs | 1050 @munch_fields(..Zeroable::zeroed()), 1126 fn assert_zeroable<T: $crate::init::Zeroable>(_: *mut T) {} 1169 @munch_fields($(..Zeroable::zeroed())? $(,)?), 1273 @munch_fields(..Zeroable::zeroed() $(,)?), 1370 unsafe impl<$($impl_generics)*> $crate::init::Zeroable for $name<$($ty_generics)*> 1375 fn assert_zeroable<T: ?::core::marker::Sized + $crate::init::Zeroable>() {}
|