LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Inode file_lock structure (https://www.linuxquestions.org/questions/linux-kernel-70/inode-file_lock-structure-583300/)

sid18 09-09-2007 12:13 AM

Inode file_lock structure
 
hi everybody,

Inode of file has 'struct file_lock' field associated with it.
When sys_fcntl() acquires a lock, it calls posix_lock_file() which checks
if requested lock conflicts with any lock in inode's lock list.
My question is,
can we access this inode locklist in user level program .. is there any API
for accessing this lock list?.. if posix locks exist on a file, on its different regions,inserted by different processes, is there any method to access this locklist to find out regions locked by processes in a user level program?


All times are GMT -5. The time now is 03:28 AM.