pub struct GS;
Expand description
GS Segment
Only base is used in 64-bit mode, see Segment64
. In kernel-mode, the GS
base often points to a per-cpu kernel data structure.
Implementations§
Trait Implementations§
Source§impl Segment for GS
impl Segment for GS
Source§fn get_reg() -> SegmentSelector
fn get_reg() -> SegmentSelector
Returns the current value of the segment register.
Source§unsafe fn set_reg(sel: SegmentSelector)
unsafe fn set_reg(sel: SegmentSelector)
Reload the segment register. Depending on the segment, this may also
reconfigure the corresponding segment. Read more
Auto Trait Implementations§
impl Freeze for GS
impl RefUnwindSafe for GS
impl Send for GS
impl Sync for GS
impl Unpin for GS
impl UnwindSafe for GS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more