libintrovirt v0.57.4
IntroVirt introspection library
Loading...
Searching...
No Matches
introvirt::x86::SegmentDescriptorTable Class Referencefinal

Class to parse a segment descriptor table. More...

#include <SegmentDescriptorTable.hh>

Public Member Functions

Segment index (uint16_t idx) const
 Get an entry based on an index into the table.
 
Segment selector (SegmentSelector sel) const
 Get an entry based on the selector.
 
size_t count () const
 Get the number of entries.
 
 SegmentDescriptorTable (const guest_ptr< void > &ptr, uint32_t limit)
 Construct a new Gdt object.
 

Detailed Description

Class to parse a segment descriptor table.

Constructor & Destructor Documentation

◆ SegmentDescriptorTable()

introvirt::x86::SegmentDescriptorTable::SegmentDescriptorTable ( const guest_ptr< void > &  ptr,
uint32_t  limit 
)

Construct a new Gdt object.

Parameters
ptrThe base address of the table
limitThe size of the table

Member Function Documentation

◆ count()

size_t introvirt::x86::SegmentDescriptorTable::count ( ) const

Get the number of entries.

Returns
The number of entries in the table

◆ index()

Segment introvirt::x86::SegmentDescriptorTable::index ( uint16_t  idx) const

Get an entry based on an index into the table.

Parameters
idxThe index into the table
Returns
Segment

◆ selector()

Segment introvirt::x86::SegmentDescriptorTable::selector ( SegmentSelector  sel) const

Get an entry based on the selector.

Parameters
selThe selector to use
Returns
Segment

The documentation for this class was generated from the following file: