Why is there an exclusive lock *count* ???

Michael Bloom mb at ttidca.TTI.COM
Tue Jan 31 00:24:38 AEST 1989


When adding the BSD flock call to my System V kernel, I was surprised
to see that a count of exclusive locks is kept in the inode's i_exlockc
field.

Why bother to do this? Isn't the IEXLOCK flag bit sufficient since there
can only be one exclusive lock at any one time?  Am I missing something?



More information about the Comp.unix.wizards mailing list