The Pedigree Project 0.1
Public Member Functions | Private Attributes | List of all members
MemoryLockAccount Class Referenceabstract

#include <UserMemoryPolicy.h>

+ Inheritance diagram for MemoryLockAccount:
+ Collaboration diagram for MemoryLockAccount:

Public Member Functions

virtual bool permitsTotalPages (size_t total, bool privileged) const =0
 
virtual bool permitsLocking (bool) const
 
MemoryLockCharge charge () const
 
MemoryLockMode futureMode () const
 
void publish (MemoryLockCharge charge, MemoryLockMode future)
 

Private Attributes

MemoryLockCharge m_Charge
 
MemoryLockMode m_Future = MemoryLockMode::None
 

Detailed Description

The address-space operation gate protects both policy and accounting.

Definition at line 39 of file UserMemoryPolicy.h.

Member Function Documentation

◆ charge()

MemoryLockCharge MemoryLockAccount::charge ( ) const
inline

Definition at line 46 of file UserMemoryPolicy.h.

◆ futureMode()

MemoryLockMode MemoryLockAccount::futureMode ( ) const
inline

Definition at line 49 of file UserMemoryPolicy.h.

◆ permitsLocking()

virtual bool MemoryLockAccount::permitsLocking ( bool  ) const
inlinevirtual

Definition at line 43 of file UserMemoryPolicy.h.

◆ publish()

void MemoryLockAccount::publish ( MemoryLockCharge  charge,
MemoryLockMode  future 
)
inline

Definition at line 52 of file UserMemoryPolicy.h.

Member Data Documentation

◆ m_Charge

MemoryLockCharge MemoryLockAccount::m_Charge
private

Definition at line 58 of file UserMemoryPolicy.h.

◆ m_Future

MemoryLockMode MemoryLockAccount::m_Future = MemoryLockMode::None
private

Definition at line 59 of file UserMemoryPolicy.h.


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