Go to the documentation of this file.
8 #include <linux/compiler.h>
9 #include <linux/types.h>
23 static inline void fput_light(
struct file *
file,
int fput_needed)
34 static inline void fdput(
struct fd fd)
40 extern struct file *
fget(
unsigned int fd);
41 extern struct file *
fget_light(
unsigned int fd,
int *fput_needed);
43 static inline struct fd fdget(unsigned
int fd)
47 return (
struct fd){
f,
b};
53 static inline struct fd fdget_raw(unsigned
int fd)
57 return (
struct fd){
f,
b};
66 #define get_unused_fd() get_unused_fd_flags(0)
69 extern void fd_install(
unsigned int fd,
struct file *file);