LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   kernel level file locking programmatically (https://www.linuxquestions.org/questions/programming-9/kernel-level-file-locking-programmatically-146737/)

cbalaji 02-16-2004 10:36 AM

kernel level file locking programmatically
 
plz give me the source code for kernel level file locking programmatically

unSpawn 02-16-2004 01:32 PM

//moderator.note: moved to programming forum

shishir 02-17-2004 10:44 PM

yo uwnt something like flock in kernel? or you want some fcntl interface that can be used to lock a file..

btw, there are interfaces that are exposed by each filesystem : that are there in a structure called struct file_operations: fs.h...this includes a lock operation too..
i guess you can use this..but i really dont know if it is easily done as there are no processes in kernel space and hence dont really know how the fds are going to be handled as fds normally are in a process scope...


All times are GMT -5. The time now is 12:51 AM.