geopm  3.1.1.dev296+g5916b956
GEOPM - Global Extensible Open Power Manager
Public Member Functions | Static Public Member Functions | List of all members
geopm::SSTIoctl Class Referenceabstract

Defines functions that interact directly with SST ioctls. More...

#include <SSTIoctl.hpp>

Inheritance diagram for geopm::SSTIoctl:
Inheritance graph
[legend]

Public Member Functions

virtual ~SSTIoctl ()=default
 
virtual int version (sst_version_s *version)=0
 Send an ioctl to the SST version interface. More...
 
virtual int get_cpu_id (sst_cpu_map_interface_batch_s *cpu_batch)=0
 Get mappings of logical CPUs to punit CPUs. More...
 
virtual int mbox (sst_mbox_interface_batch_s *mbox_batch)=0
 Interact with the SST mailbox. This may be for send or receive operations. More...
 
virtual int mmio (sst_mmio_interface_batch_s *mmio_batch)=0
 Interact with the SST MMIO interface. This may be for read or write operations. More...
 

Static Public Member Functions

static std::shared_ptr< SSTIoctlmake_shared (const std::string &path)
 create an object to interact with this interface. More...
 

Detailed Description

Defines functions that interact directly with SST ioctls.

Constructor & Destructor Documentation

◆ ~SSTIoctl()

virtual geopm::SSTIoctl::~SSTIoctl ( )
virtualdefault

Member Function Documentation

◆ get_cpu_id()

virtual int geopm::SSTIoctl::get_cpu_id ( sst_cpu_map_interface_batch_s cpu_batch)
pure virtual

Get mappings of logical CPUs to punit CPUs.

Parameters
[in,out]cpu_batcha set of CPU mappings. The maximum number of mappings per ioctl request is specified by the SST version information.

Implemented in geopm::SSTIoctlImp.

◆ make_shared()

std::shared_ptr< SSTIoctl > geopm::SSTIoctl::make_shared ( const std::string &  path)
static

create an object to interact with this interface.

Parameters
pathPath to the ioctl node.

◆ mbox()

virtual int geopm::SSTIoctl::mbox ( sst_mbox_interface_batch_s mbox_batch)
pure virtual

Interact with the SST mailbox. This may be for send or receive operations.

Parameters
[in,out]mbox_batchcollection of operations to perform in this ioctl call. The maximum count of operations is specified by the SST version information.

Implemented in geopm::SSTIoctlImp.

◆ mmio()

virtual int geopm::SSTIoctl::mmio ( sst_mmio_interface_batch_s mmio_batch)
pure virtual

Interact with the SST MMIO interface. This may be for read or write operations.

Parameters
[in,out]mmio_batchcollection of operations to perform in this ioctl call. The maximum count of operations is specified by the SST version information.

Implemented in geopm::SSTIoctlImp.

◆ version()

virtual int geopm::SSTIoctl::version ( sst_version_s version)
pure virtual

Send an ioctl to the SST version interface.

Parameters
[out]versionSST version information.

Implemented in geopm::SSTIoctlImp.


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