pub fn translated_ref<T>(token: usize, ptr: *const T) -> &'static T
Expand description

translate a pointer ptr in other address space to a immutable u8 slice in kernel address space. NOTICE: the content pointed to by the pointer ptr cannot cross physical pages, otherwise translated_byte_buffer should be used.