enum NameServerRemoteNotify_Status |
|
Status codes returned by certain calls
typedef enum NameServerRemoteNotify_Status {
NameServerRemoteNotify_S_SUCCESS,
NameServerRemoteNotify_E_FAIL,
NameServerRemoteNotify_E_ERROR
} NameServerRemoteNotify_Status;
struct NameServerRemoteNotify_Message |
|
typedef struct NameServerRemoteNotify_Message {
Bits32 request;
Bits32 response;
Bits32 requestStatus;
Bits32 value;
Bits32 valueLen;
Bits32 instanceName[8];
Bits32 name[8];
Bits32 valueBuf[75];
} NameServerRemoteNotify_Message;
config NameServerRemoteNotify_A_invalidValueLen // module-wide |
|
Assert raised when length of value larger then 300 bytes
extern const Assert_Id NameServerRemoteNotify_A_invalidValueLen;
config NameServerRemoteNotify_notifyEventId // module-wide |
|
The Notify event ID
extern const UInt NameServerRemoteNotify_notifyEventId;
config NameServerRemoteNotify_timeoutInMicroSecs // module-wide |
|
The timeout value in terms of microseconds
extern const UInt NameServerRemoteNotify_timeoutInMicroSecs;
DETAILS
A NameServer request will return after this amout of time
without a response. The default timeout value is to wait forever.
To not wait, use the value of '0'.
NameServerRemoteNotify_attach() // module-wide |
|
Function is called by Ipc_attach() through NameServer_SetupProxy
Int NameServerRemoteNotify_attach(UInt16 remoteProcId, Ptr sharedAddr);
NameServerRemoteNotify_detach() // module-wide |
|
Function is called by Ipc_detach() through NameServer_SetupProxy
Int NameServerRemoteNotify_detach(UInt16 remoteProcId);
NameServerRemoteNotify_sharedMemReq() // module-wide |
|
Returns the shared memory size requirement for a single instance
SizeT NameServerRemoteNotify_sharedMemReq(Ptr sharedAddr);
ARGUMENTS
sharedAddr
Shared address
RETURNS
Number of MAUs needed to create the instance.
DETAILS
Function is called during Ipc_attach() through NameServer_SetupProxy.
Module-Wide Built-Ins |
|
// Get this module's unique id
Bool NameServerRemoteNotify_Module_startupDone();
// Test if this module has completed startup
// The heap from which this module allocates memory
Bool NameServerRemoteNotify_Module_hasMask();
// Test whether this module has a diagnostics mask
Bits16 NameServerRemoteNotify_Module_getMask();
// Returns the diagnostics mask for this module
Void NameServerRemoteNotify_Module_setMask(Bits16 mask);
// Set the diagnostics mask for this module
Instance Object Types |
|
typedef struct NameServerRemoteNotify_Object NameServerRemoteNotify_Object;
// Opaque internal representation of an instance object
// Client reference to an instance object
typedef struct NameServerRemoteNotify_Struct NameServerRemoteNotify_Struct;
// Opaque client structure large enough to hold an instance object
// Convert this instance structure pointer into an instance handle
// Convert this instance handle into an instance structure pointer
Instance Config Parameters |
|
typedef struct NameServerRemoteNotify_Params {
// Instance config-params structure
// Common per-instance configs
// GateMP used for critical region management of the shared memory
Ptr sharedAddr;
// Physical address of the shared memory
} NameServerRemoteNotify_Params;
// Initialize this config-params structure with supplier-specified defaults before instance creation
config NameServerRemoteNotify_gate // instance |
|
GateMP used for critical region management of the shared memory
DETAILS
Using the default value of NULL will result in the default GateMP
being used for context protection.
config NameServerRemoteNotify_sharedAddr // instance |
|
Physical address of the shared memory
DETAILS
The shared memory that will be used for maintaining shared state
information. This value must be the same for both processors when
creating the instance between a pair of processors.
Instance Creation |
|
// Allocate and initialize a new instance object and return its handle
// Initialize a new instance object inside the provided structure
ARGUMENTS
params
per-instance config params, or NULL to select default values (target-domain only)
eb
active error-handling block, or NULL to select default policy (target-domain only)
Instance Deletion |
|
// Finalize and free this previously allocated instance object, setting the referenced handle to NULL
// Finalize the instance object inside the provided structure
NameServerRemoteNotify_get() // instance |
|
ARGUMENTS
handle
handle of a previously-created NameServerRemoteNotify instance object
Instance Convertors |
|
// unconditionally move one level up the inheritance hierarchy
// conditionally move one level down the inheritance hierarchy; NULL upon failure
Instance Built-Ins |
|
Int NameServerRemoteNotify_Object_count();
// The number of statically-created instance objects
// The handle of the i-th statically-created instance object (array == NULL)
// The handle of the first dynamically-created instance object, or NULL
// The handle of the next dynamically-created instance object, or NULL
// The heap used to allocate dynamically-created instance objects
// The label associated with this instance object
// The name of this instance object
enum NameServerRemoteNotify.Status |
|
Status codes returned by certain calls
XDCscript usage |
meta-domain |
values of type NameServerRemoteNotify.Status
const NameServerRemoteNotify.S_SUCCESS;
const NameServerRemoteNotify.E_FAIL;
const NameServerRemoteNotify.E_ERROR;
C SYNOPSIS
struct NameServerRemoteNotify.Message |
|
XDCscript usage |
meta-domain |
var obj = new NameServerRemoteNotify.Message;
obj.request = Bits32 ...
obj.response = Bits32 ...
obj.requestStatus = Bits32 ...
obj.value = Bits32 ...
obj.valueLen = Bits32 ...
obj.instanceName = Bits32[8] ...
obj.name = Bits32[8] ...
obj.valueBuf = Bits32[75] ...
C SYNOPSIS
config NameServerRemoteNotify.A_invalidValueLen // module-wide |
|
Assert raised when length of value larger then 300 bytes
XDCscript usage |
meta-domain |
NameServerRemoteNotify.
A_invalidValueLen =
Assert.Desc {
msg: "A_invalidValueLen: Invalid valueLen (too large)"
};
C SYNOPSIS
config NameServerRemoteNotify.notifyEventId // module-wide |
|
The Notify event ID
XDCscript usage |
meta-domain |
NameServerRemoteNotify.notifyEventId = UInt 4;
C SYNOPSIS
config NameServerRemoteNotify.timeoutInMicroSecs // module-wide |
|
The timeout value in terms of microseconds
XDCscript usage |
meta-domain |
NameServerRemoteNotify.timeoutInMicroSecs = UInt ~(0);
DETAILS
A NameServer request will return after this amout of time
without a response. The default timeout value is to wait forever.
To not wait, use the value of '0'.
C SYNOPSIS
metaonly config NameServerRemoteNotify.common$ // module-wide |
|
Common module configuration parameters
XDCscript usage |
meta-domain |
DETAILS
All modules have this configuration parameter. Its name
contains the '$' character to ensure it does not conflict with
configuration parameters declared by the module. This allows
new configuration parameters to be added in the future without
any chance of breaking existing modules.
metaonly config NameServerRemoteNotify.rovViewInfo // module-wide |
|
XDCscript usage |
meta-domain |
Instance Config Parameters |
|
XDCscript usage |
meta-domain |
var params = new NameServerRemoteNotify.Params;
// Instance config-params object
// GateMP used for critical region management of the shared memory
params.sharedAddr = Ptr null;
// Physical address of the shared memory
config NameServerRemoteNotify.gate // instance |
|
GateMP used for critical region management of the shared memory
XDCscript usage |
meta-domain |
var params = new NameServerRemoteNotify.Params;
...
DETAILS
Using the default value of NULL will result in the default GateMP
being used for context protection.
C SYNOPSIS
config NameServerRemoteNotify.sharedAddr // instance |
|
Physical address of the shared memory
XDCscript usage |
meta-domain |
var params = new NameServerRemoteNotify.Params;
...
params.sharedAddr = Ptr null;
DETAILS
The shared memory that will be used for maintaining shared state
information. This value must be the same for both processors when
creating the instance between a pair of processors.
C SYNOPSIS
Instance Creation |
|
XDCscript usage |
meta-domain |
var params =
new NameServerRemoteNotify.
Params;
// Allocate instance config-params
params.config = ...
// Assign individual configs
var inst = NameServerRemoteNotify.create(UInt16 procId, params);
// Create an instance-object
ARGUMENTS
params
per-instance config params, or NULL to select default values (target-domain only)
eb
active error-handling block, or NULL to select default policy (target-domain only)