Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (M)
Guardian Procedure Calls Reference Manual—522629-013
9-59
MOM Procedure
(Superseded by PROCESS_GETINFOLIST_
.<8:15> PIN assigned by the operating system to identify the
process in the processor
For a named local process,
process-id is:
[0:2] $process-name
[3].<0:3> Reserved
.<4:7> processor number where the process is executing
.<8:15> PIN assigned by the operating system to identify the
process in the processor
For a named remote process,
process-id is:
[0].<0:7> “\” (ASCII backslash)
.<8:15> System number
[1:2] $process-name
[3].<0:3> Reserved
.<4:7> processor number where the process is executing
.<8:15> PIN assigned by the operating system to identify the
process in the processor
Considerations
•
Calling MOM from a named process or process pair
If the caller is a single named process (that is, the caller is the primary process of a
named process pair with no backup process), zeros are returned in
process-id.
If the caller of MOM is the primary process of a named process pair and there is a
backup process, the process ID of the backup is returned.
If the caller of MOM is the backup process of a named process pair, the process ID
of the primary is returned.
•
Passing the process ID to the system procedures
The process ID returned from MOM is suitable for passing directly to any file-
system procedure. (If you expand the process ID into a 12-word array and fill it with
blanks on the right before or after the call to MOM, you can pass the process ID as
a file name to any Guardian procedure.)
•
Calling MOM from an adopted process
If another process has made itself the creator of the caller of MOM (through a call
to STEPMOM or PROCESS_SETINFO_), then the process ID of the adopting
process is returned.
•
Network consideration
If a process’s creator is on a remote system, its process ID is returned by MOM in
network form. A process can use this fact to determine whether it is created
locally.