pub fn copy_to_kernel<T>(from: &T) -> Result<Status, Status>where
T: SentryExchangeable + ?Sized,Expand description
Copy a given generic type to the kernel exchange zone from the given eference copy to kernel generic implementation
This API is a generic implementation in order to allow userspace to kernelspace exchange for any type that do implement the SentryExchangeable trait.
§Example
A basic usage would look like the following:
ⓘ
let my_info: &[u8] = &[1,2,3,4];
copy_to_kernel(my_info);