locks_mandatory_area(9)

locks_mandatory_area9

Check for a conflicting lock

Usage

int locks_mandatory_area(struct inode * inode, struct file * filp, loff_t start, loff_t end, unsigned char type);

Arguments

inode

the file to check

filp

how the file was opened (if it was)

start

first byte in the file to check

end

lastbyte in the file to check

type

F_WRLCK for a write lock, else F_RDLCK

Overview

Searches the inode's list of locks to find any POSIX locks which conflict.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.