1 .TH llapi_group_lock 3 "2014 Oct 03" "Lustre User API"
3 llapi_group_lock, llapi_group_unlock \- get and put a Lustre group lock.
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_group_lock(int "fd ", int "gid );
10 .BI "int llapi_group_unlock(int "fd ", int "gid );
15 .BR llapi_group_lock()
16 takes a group lock on the file descriptor
22 .BR llapi_group_unlock()
23 releases a group lock identified by group identifier
25 on the file descriptor
28 The group lock is a whole file lock that blocks concurrent I/O originating from descriptors that have not been locked. Multiple processes can acquire a lock by specifying the same group identifier.
32 .B llapi_group_lock(\|)
34 .B llapi_group_unlock(\|)
35 return 0 on success or a negative errno value on failure.
40 is not a valid file descriptor.
44 does not describe an object suitable for this request.
48 is already group locked with a different group identifier.