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

Swap KernelGsBase MSR and GsBase MSR.

Safety

This function is unsafe because the caller must ensure that the swap operation cannot lead to undefined behavior.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the current value of the segment register.

Reload the segment register. Depending on the segment, this may also reconfigure the corresponding segment. Read more

MSR containing the segment base. This MSR can be used to set the base when CR4.FSGSBASE is not set. Read more

Reads the segment base address Read more

Writes the segment base address Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.