LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
 
Search this Thread
Old 02-16-2004, 10:36 AM   #1
cbalaji
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
kernel level file locking programmatically


plz give me the source code for kernel level file locking programmatically
 
Old 02-16-2004, 01:32 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,346
Blog Entries: 54

Rep: Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215
//moderator.note: moved to programming forum
 
Old 02-17-2004, 10:44 PM   #3
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file locking in ftp krunal Linux - Newbie 2 10-20-2005 04:43 AM
locking a usage policy file/ftp file permissions gbow Linux - Newbie 0 02-16-2004 05:35 AM
File locking over Samba rtaft Linux - Software 0 12-30-2003 11:02 AM
File locking in Linux xailer Programming 5 12-29-2003 02:00 PM
python; file locking TheLinuxDuck Programming 22 08-05-2003 05:47 PM


All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration