DSM/Tape Catalog Management Programming Manual
Communicating With MEDIASRV
DSM/Tape Catalog Management Programming Manual—520481-003
2-4
Starting a MEDIASRV Process Using the
PROCESS_CREATE_ Procedure
Starting a MEDIASRV Process Using the PROCESS_CREATE_
Procedure
An application can create a MEDIASRV process by calling the operating system
PROCESS_CREATE_ procedure. The sequence of events is:
1. The application starts the MEDIASRV process by calling the
PROCESS_CREATE_ procedure.
2. The application uses the FILE_OPEN_ procedure to open the MEDIASRV process
in order to send a startup message.
3. The application sends a startup message to the MEDIASRV process, specifying
the desired startup parameters.
4. The application closes the MEDIASRV process, which is then ready to be opened
for SPI communications by management applications.
Specify run options as arguments to the procedure itself and startup parameters in the
subsequent startup message. For more information on the PROCESS_CREATE_
procedure and the other procedures, see the Guardian Procedure Calls Reference
Manual and the Guardian User’s Guide.
file-name:len
is a string containing the name of the MEDIASRV program object file. The length of
the string follows the colon.
error := PROCESS_CREATE_(file-name:len
,
,[swap-file:len]
,[ext-swap-file:len]
,[priority]
,[cpu]
,
,[error-detail]
, name-option
, process-name:len
,
,
,
,[hometerm:len]
,[create-options]);
error := FILE_OPEN_(process-name:len,file-number);
CALL WRITE (file-number,startup-message,message-len);
error := FILE_CLOSE_(file-number);