copy_to_kernel

Function copy_to_kernel 

Source
pub fn copy_to_kernel<T>(from: &T) -> Result<Status, Status>
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);