-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Description
Could you please give some examples how to use LockedBox?
I have a code like this:
#[repr(C, packed)]
#[derive(Debug, Clone, Copy, DeviceCopy)]
pub struct SomeResult {
pub field: u32
}
...
let mut some_result = SomeResult::default();
let mut lb_some_result = LockedBox::new(&some_result).unwrap();
What should I do to copy it to DeviceBox and back from DeviceBox after the kernel finishes? Things like
let dev_results = DeviceBox::new(&lb_some_result).unwrap();
are not working.
Metadata
Metadata
Assignees
Labels
No labels