1SYS_FLOCK(9)                     The Linux VFS                    SYS_FLOCK(9)
2
3
4

NAME

6       sys_flock - flock system call.
7

SYNOPSIS

9       long sys_flock(unsigned int fd, unsigned int cmd);
10

ARGUMENTS

12       fd
13           the file descriptor to lock.
14
15       cmd
16           the type of lock to apply.
17

DESCRIPTION

19       Apply a FL_FLOCK style lock to an open file descriptor. The cmd can be
20       one of
21
22       LOCK_SH -- a shared lock.
23
24       LOCK_EX -- an exclusive lock.
25
26       LOCK_UN -- remove an existing lock.
27
28       LOCK_MAND -- a `mandatory' flock. This exists to emulate Windows Share
29       Modes.
30
31       LOCK_MAND can be combined with LOCK_READ or LOCK_WRITE to allow other
32       processes read and write access respectively.
33
35Kernel Hackers Manual 3.10         June 2019                      SYS_FLOCK(9)
Impressum