thread concurrent file operation

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Tue Jan 29 16:38:18 EST 2013


On Tue, 29 Jan 2013 18:25:19 +0100, Karaoui mohamed lamine said:

> This function is supposed to return the file reference, does do the locking?

Refcounting only, no locking provided by fdget.

> It seems that i can't find the lock instruction( with all those rcu
> instructions, i am little lost), can you guide me throught ?

Because it isn't there. Concurrent writes can happen - that's why lockf()
exists, so that multiple programs that want to scribble on the same file can do
their locking.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130129/8de184d7/attachment.bin 


More information about the Kernelnewbies mailing list