Lines Matching refs:fid

150 	u32 fid;  member
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);
212 int p9_client_readdir(struct p9_fid *fid, char *data, u32 count, u64 offset);
215 struct p9_wstat *p9_client_stat(struct p9_fid *fid);
216 int p9_client_wstat(struct p9_fid *fid, struct p9_wstat *wst);
217 int p9_client_setattr(struct p9_fid *fid, struct p9_iattr_dotl *attr);
219 struct p9_stat_dotl *p9_client_getattr_dotl(struct p9_fid *fid,
224 int p9_client_mkdir_dotl(struct p9_fid *fid, const char *name, int mode,
226 int p9_client_lock_dotl(struct p9_fid *fid, struct p9_flock *flock, u8 *status);
227 int p9_client_getlock_dotl(struct p9_fid *fid, struct p9_getlock *fl);
246 void do_trace_9p_fid_get(struct p9_fid *fid);
247 void do_trace_9p_fid_put(struct p9_fid *fid);
259 static inline struct p9_fid *p9_fid_get(struct p9_fid *fid) in p9_fid_get() argument
262 do_trace_9p_fid_get(fid); in p9_fid_get()
264 refcount_inc(&fid->count); in p9_fid_get()
266 return fid; in p9_fid_get()
269 static inline int p9_fid_put(struct p9_fid *fid) in p9_fid_put() argument
271 if (!fid || IS_ERR(fid)) in p9_fid_put()
275 do_trace_9p_fid_put(fid); in p9_fid_put()
277 if (!refcount_dec_and_test(&fid->count)) in p9_fid_put()
280 return p9_client_clunk(fid); in p9_fid_put()
295 int p9_client_xattrcreate(struct p9_fid *fid, const char *name,
297 int p9_client_readlink(struct p9_fid *fid, char **target);