Expand description
Provides pointer wrappers for safely accessing userspace
All pointers provided from userspace should be accessed through a User to
prevent kernelspace page faults from invalid or misaligned pointers.
ยงSMAP
When SMAP is supported on the system, all memory access through a User will
automatically set and clear the AC flag to prevent trapping.
Modulesยง
- impls ๐
(x86 or x86-64) and full - user_
local ๐full - user_
ptr ๐full
Structsยง
- Local
User full - Pointer
Error - The error returned when a memory access to userspace failed
- User
full - A pointer to a potentially invalid address, tied to a specific address space
Functionsยง
- local_
slice_ โfrom_ raw_ parts full - local_
slice_ from_ raw_ parts_ mut full - null
full - Produces a null
User<*const T> - null_
mut full - Produces a null
User<*mut T> - slice_
from_ โraw_ parts full - slice_
from_ raw_ parts_ mut full