listing for D
dlm_glc_attach - Attaches the calling process to an existing group lock
Distributed Lock Manager Library (libdlm.a)
dlm_status_t dlm_glc_attach (
dlm_glc_flags_t flags );
id Handle to the group lock container to which the caller is to be
attached. The group lock container ID is returned by a previous
call to dlm_glc_create.
flags When provided, specifies flags that modify the operation. The
flags parameter is a bit mask that is the logical OR of each bit
set, where each bit corresponds to an option. No flags are
The dlm_glc_attach() function attaches the calling process to the specified
group lock container. The process must have previously attached to all of
the namespaces to which the group lock container was associated when it was
created. Use the dlm_locktp() or dlm_quelocktp() function with the
DLM_GROUP_LOCK flag to create new group locks in the container.
Locks currently owned by the process are not affected by the
When a process attaches to a group lock container, it becomes a member of
the process lock group and obtains the right to manipulate any lock that is
associated with that container. A group lock can be manipulated by only
one group member at a time, although one member can cancel or dequeue
another member's request for group locks in that container. A process can
attach to only one group lock container at a time.
Upon completion, the dlm_glc_attach() function call returns one of the
The operation was completed successfully.
The process is already attached to a group lock container.
Illegal flags were specified.
The specified group lock container does not exist.
The DLM is not enabled.
The process is not attached to the distributed lock manager (DLM)
or to one of the namespaces to which the group lock container is
DLM library header file.
Source files for an example showing lock conversion and value
Functions: dlm_cancel(3), dlm_cvt(3), dlm_detach(3), dlm_get_lkinfo(3),
dlm_get_rsbinfo(3), dlm_glc_create(3), dlm_glc_detach(3),
dlm_glc_destroy(3), dlm_lock(3) dlm_notify(3), dlm_nsjoin(3),
dlm_nsleave(3), dlm_perrno(3), dlm_quecvt(3), dlm_quelock(3),
dlm_rd_attach(3), dlm_rd_collect(3), dlm_rd_detach(3), dlm_rd_validate(3),
TruCluster Server Cluster Highly Available Applications
listing for D