Lines Matching refs:fid
132 * @fid: numeric identifier for this handle
133 * @mode: current mode of this fid (enum?)
138 * @dlist: per-dentry fid tracking
150 u32 fid;
181 int p9_client_statfs(struct p9_fid *fid, struct p9_rstatfs *sb);
182 int p9_client_rename(struct p9_fid *fid, struct p9_fid *newdirfid,
194 int p9_client_open(struct p9_fid *fid, int mode);
195 int p9_client_fcreate(struct p9_fid *fid, const char *name, u32 perm, int mode,
197 int p9_client_link(struct p9_fid *fid, struct p9_fid *oldfid, const char *newname);
198 int p9_client_symlink(struct p9_fid *fid, const char *name, const char *symname,
202 int p9_client_clunk(struct p9_fid *fid);
203 int p9_client_fsync(struct p9_fid *fid, int datasync);
204 int p9_client_remove(struct p9_fid *fid);
206 int p9_client_read(struct p9_fid *fid, u64 offset, struct iov_iter *to, int *err);
207 int p9_client_read_once(struct p9_fid *fid, u64 offset, struct iov_iter *to,
209 int p9_client_write(struct p9_fid *fid, u64 offset, struct iov_iter *from, int *err);
210 int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset);
213 struct p9_wstat *p9_client_stat(struct p9_fid *fid);
214 int p9_client_wstat(struct p9_fid *fid, struct p9_wstat *wst);
215 int p9_client_setattr(struct p9_fid *fid, struct p9_iattr_dotl *attr);
217 struct p9_stat_dotl *p9_client_getattr_dotl(struct p9_fid *fid,
222 int p9_client_mkdir_dotl(struct p9_fid *fid, const char *name, int mode,
224 int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status);
225 int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *fl);
244 void do_trace_9p_fid_get(struct p9_fid *fid);
245 void do_trace_9p_fid_put(struct p9_fid *fid);
247 /* fid reference counting helpers:
252 * - the *_fid_add() helpers will stash the fid in the inode,
257 static inline struct p9_fid *p9_fid_get(struct p9_fid *fid)
260 do_trace_9p_fid_get(fid);
262 refcount_inc(&fid->count);
264 return fid;
267 static inline int p9_fid_put(struct p9_fid *fid)
269 if (!fid || IS_ERR(fid))
273 do_trace_9p_fid_put(fid);
275 if (!refcount_dec_and_test(&fid->count))
278 return p9_client_clunk(fid);
293 int p9_client_xattrcreate(struct p9_fid *fid, const char *name,
295 int p9_client_readlink(struct p9_fid *fid, char **target);