fn tss_descriptor(tss: &TaskStateSegment) -> Descriptor64 {
        let tss_ptr = tss as *const _ as u64;

        <DescriptorBuilder as GateDescriptorBuilder<u64>>::tss_descriptor(
            tss_ptr as u64,
            size_of::<TaskStateSegment>() as u64,
            true,
        )
        .present()
        .dpl(Ring::Ring0)
        .finish()
    }
/// Generates a TSS descriptor that can be sticked into the `tss_segment`
///
/// It uses address of the TaskStateSegment. While this is not `unsafe` by
/// itself, care must be taken as the `tss` should probably be 'static and
/// not go away during the life-time of the Gdt.
Generates a TSS descriptor that can be sticked into the `tss_segment`
It uses address of the TaskStateSegment. While this is not `unsafe` by
itself, care must be taken as the `tss` should probably be 'static and
not go away during the life-time of the Gdt.
Generates a TSS descriptor that can be sticked into the ` tss_segment ` It uses address of the TaskStateSegment . While this is not ` unsafe ` by itself care must be taken as the ` tss ` should probably be ' static and not go away during the life - time of the Gdt .
fn tss_descriptor(tss: &TaskStateSegment) -> Descriptor64 {
        let tss_ptr = tss as *const _ as u64;
        <DescriptorBuilder as GateDescriptorBuilder<u64>>::tss_descriptor(
            tss_ptr as u64,
            size_of::<TaskStateSegment>() as u64,
            true,
        )
        .present()
        .dpl(Ring::Ring0)
        .finish()
    }
fn tss_descriptor ( tss : & TaskStateSegment ) -> Descriptor64 { let tss_ptr = tss as * const _ as u64 ; < DescriptorBuilder as GateDescriptorBuilder < u64 > > :: tss_descriptor ( tss_ptr as u64 , size_of :: < TaskStateSegment > ( ) as u64 , true , ) . present ( ) . dpl ( Ring :: Ring0 ) . finish ( ) }
Generates a TSS descriptor that can be sticked into the `tss_segment`
It uses address of the TaskStateSegment.
Generates a TSS descriptor that can be sticked into the ` tss_segment ` It uses address of the TaskStateSegment .
tss
&TaskStateSegment
tss
&TaskStateSegment