kernel level file locking programmatically
plz give me the source code for kernel level file locking programmatically
|
//moderator.note: moved to programming forum
|
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. |