[][src]Function x86_64::instructions::segmentation::swap_gs

pub unsafe fn swap_gs()

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.