Lines Matching refs:f
50 #define fd_file(f) ((struct file *)((f).word & ~(FDPUT_FPUT|FDPUT_POS_UNLOCK))) argument
51 static inline bool fd_empty(struct fd f) in fd_empty() argument
53 return unlikely(!f.word); in fd_empty()
57 static inline struct fd BORROWED_FD(struct file *f) in BORROWED_FD() argument
59 return (struct fd){(unsigned long)f}; in BORROWED_FD()
61 static inline struct fd CLONED_FD(struct file *f) in CLONED_FD() argument
63 return (struct fd){(unsigned long)f | FDPUT_FPUT}; in CLONED_FD()
81 static inline void fdput_pos(struct fd f) in fdput_pos() argument
83 if (f.word & FDPUT_POS_UNLOCK) in fdput_pos()
84 __f_unlock_pos(fd_file(f)); in fdput_pos()
85 fdput(f); in fdput_pos()