diff options
author | Jeremy Allison <jra@samba.org> | 2012-01-12 14:46:45 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-01-13 01:35:03 +0100 |
commit | 6c1d98eac06df7f033d8a69bb5be985067f96c9b (patch) | |
tree | b7545df3f7b410681dce8d917b6e05938a5feeca /source3/locking/locking.c | |
parent | 6da246bae1b000cb3191e114e978510ccacb7e90 (diff) | |
download | samba-6c1d98eac06df7f033d8a69bb5be985067f96c9b.tar.gz samba-6c1d98eac06df7f033d8a69bb5be985067f96c9b.tar.bz2 samba-6c1d98eac06df7f033d8a69bb5be985067f96c9b.zip |
Add comments to all functions (to help me understand it better).
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Jan 13 01:35:03 CET 2012 on sn-devel-104
Diffstat (limited to 'source3/locking/locking.c')
-rw-r--r-- | source3/locking/locking.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c index 9199591d9e..7063b54d9c 100644 --- a/source3/locking/locking.c +++ b/source3/locking/locking.c @@ -448,6 +448,11 @@ char *share_mode_str(TALLOC_CTX *ctx, int num, const struct share_mode_entry *e) (unsigned int)e->name_hash); } +/******************************************************************* + Fetch a share mode where we know one MUST exist. This call reference + counts it internally to allow for nested lock fetches. +********************************************************************/ + struct share_mode_lock *get_share_mode_lock(TALLOC_CTX *mem_ctx, const struct file_id id) { |