pub struct GsBase;
Expand description
GS.Base Model Specific Register.
GS::swap
swaps this register with KernelGsBase
.
Implementations
sourceimpl GsBase
impl GsBase
sourcepub fn read() -> VirtAddr
pub fn read() -> VirtAddr
Read the current GsBase register.
If CR4.FSGSBASE
is set, the more efficient
GS::read_base
can be used instead.
sourcepub fn write(address: VirtAddr)
pub fn write(address: VirtAddr)
Write a given virtual address to the GS.Base register.
If CR4.FSGSBASE
is set, the more efficient
GS::write_base
can be used instead.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for GsBase
impl Send for GsBase
impl Sync for GsBase
impl Unpin for GsBase
impl UnwindSafe for GsBase
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more