Function dbs_arch::gdt::kvm_segment_from_gdt
source · pub fn kvm_segment_from_gdt(entry: u64, table_index: u8) -> kvm_segmentExpand description
Automatically build the kvm struct for SET_SREGS from the kernel bit fields.
Arguments
entry- The gdt entry.table_index- Index of the entry in the gdt table.