GDSX (Extended General Device Support) Manual
Service Routines
Extended General Device Support (GDSX) Manual—529931-001
8-39
GET_PROCESS_HANDLES_CPU_
GET_PROCESS_HANDLES_CPU_
This procedure returns the CPU number of a process handle.
cpu returned value
INT:value
indicates the outcome of the operation. If a valid CPU number is found in the
process handle, the number is returned in cpu, otherwise -1 is returned.
processhandle input
INT .EXT:ref:10
is a pointer to a process handle.
GET_PROCESS_HANDLES_NODE_
This procedure returns the node number from the passed-in process handle.
node returned value
INT(32):value
indicates the outcome of the operation. If a valid node number is found in the
process handle, the number is returned in node; otherwise -1D is returned.
processhandle input
INT .EXT:ref:10
is a pointer to a process handle.
GET^TASK^NAME
This procedure provides the calling task with the object name of another task’s SU or
LINE. The name is taken from the variable name (SCF object name) in the
dcb^template. Use the ^MYTERM procedure to get the object name of the calling
task’s SU or LINE.
cpu := GET_PROCESS_HANDLES_CPU_ ( processhandle ); !
i
node := GET_PROCESS_HANDLES_NODE_ ( processhandle ); !
i
name-length := GET^TASK^NAME ( tcb !
i
,name ); !
o