|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PhysicalMemoryMapper
Basic mapping operations.
Implementation providing methods other than map/unmap for
physical memory should extend this class and set the
mapper field of the PhysicalMemoryRequest when parsing
the type object.
PhysicalMemoryRequest| Method Summary | |
|---|---|
boolean |
canRemap()
Returns true if a remap() can be attempted. |
void |
checkMapperConstraints(PhysicalMemoryRequest request)
Check the constraints due to the mapper itself. |
long |
get_mapped_address()
Get the mapped address, or 0 if unmapped. |
boolean |
isCompatibleWithPhysicalMemory()
Returns true if this mapper is compatible with ImmortalPhysicalMemory, LTPhysicalMemory and VTPhysicalMemory. |
long |
map(PhysicalMemoryRequest request)
Map the request. |
void |
unmap(PhysicalMemoryRequest request)
Undo a mapping. |
| Method Detail |
|---|
long map(PhysicalMemoryRequest request)
throws javax.realtime.OffsetOutOfBoundsException,
javax.realtime.SizeOutOfBoundsException,
javax.realtime.MemoryTypeConflictException,
java.lang.OutOfMemoryError
request - constraints issued from the parsing of a memory type.
javax.realtime.OffsetOutOfBoundsException - Thrown if
the address is invalid.
javax.realtime.SizeOutOfBoundsException - Thrown if
the size is negative or extends into an invalid range of memory.
javax.realtime.MemoryTypeConflictException - Thrown
if the specified base does not point to memory that matches the
request type, or if type specifies incompatible memory
attributes.
java.lang.OutOfMemoryError - Thrown if the requested
type of memory exists, but there is not enough of it free to
satisfy the request.void unmap(PhysicalMemoryRequest request)
request - constraints issued from the parsing of a memory type.long get_mapped_address()
void checkMapperConstraints(PhysicalMemoryRequest request)
throws java.lang.SecurityException,
javax.realtime.OffsetOutOfBoundsException,
javax.realtime.SizeOutOfBoundsException,
javax.realtime.MemoryTypeConflictException
The default implementation does nothing.
request - constraints issued from the parsing of a memory type.
java.lang.SecurityException - Thrown if application
doesn't have permissions to access physical memory, the
specified range of addresses, or the given type of memory.
javax.realtime.OffsetOutOfBoundsException - Thrown if
the address is invalid.
javax.realtime.SizeOutOfBoundsException - Thrown if
the size is negative or extends into an invalid range of memory.
javax.realtime.MemoryTypeConflictException - Thrown
if the specified base does not point to memory that matches the
request type, or if type specifies incompatible memory
attributes.boolean canRemap()
boolean isCompatibleWithPhysicalMemory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||