z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


shmlkinit

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-shmlkinit--address--locktokenvar--+----------------------------------------------------+-><
                                     '-exclusive--+-------------------------------------+-'   
                                                  '-shared--+-------------------------+-'     
                                                            '-deadlock--+-----------+-'       
                                                                        '-recursive-'         

Function

shmlkinit initializes a shared memory lock.

Parameters

address
The address of a lock word in a shared memory segment. The lock word must be in 4-byte hexadecimal format.
locktokvar
The variable where a lock token is returned.
exclusive
0
The lock cannot be obtained with the shared attribute. A lock that is obtained with the shared attribute can be obtained concurrently by other callers requesting a shared lock obtain.
1
Can be obtained with the shared attribute. This is the default.
deadlock
0
Deadlocks are not detected.
1
Deadlocks are detected. This is the default.
recursive
0
Recursive obtains are not allowed. This is the default.
1
Recursive obtains are allowed.

Example

'shmlkinit shmaddr lk'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014