summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/fd.h
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/fd.h')
-rw-r--r--libglusterfs/src/fd.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/libglusterfs/src/fd.h b/libglusterfs/src/fd.h
index a70707bc1..c1b9157d8 100644
--- a/libglusterfs/src/fd.h
+++ b/libglusterfs/src/fd.h
@@ -24,6 +24,8 @@
#include "fd-lk.h"
#include "common-utils.h"
+#define GF_ANON_FD_NO -2
+
struct _inode;
struct _dict;
struct fd_lk_ctx;
@@ -84,7 +86,7 @@ typedef struct _fdtable fdtable_t;
#include "xlator.h"
-inline void
+void
gf_fd_put (fdtable_t *fdtable, int32_t fd);
@@ -132,6 +134,9 @@ fd_lookup (struct _inode *inode, pid_t pid);
fd_t *
fd_lookup_uint64 (struct _inode *inode, uint64_t pid);
+fd_t*
+fd_lookup_anonymous (inode_t *inode);
+
fd_t *
fd_anonymous (inode_t *inode);
@@ -160,6 +165,10 @@ int
fd_ctx_del (fd_t *fd, xlator_t *xlator, uint64_t *value);
int
+__fd_ctx_del (fd_t *fd, xlator_t *xlator, uint64_t *value);
+
+
+int
__fd_ctx_set (fd_t *fd, xlator_t *xlator, uint64_t value);