2014-02-06 06:52:49 +00:00
|
|
|
/*
|
|
|
|
* Wrapper functions for accessing the file_struct fd array.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __LINUX_FILE_H
|
|
|
|
#define __LINUX_FILE_H
|
2016-02-26 19:23:56 +00:00
|
|
|
|
|
|
|
#include <linux/compiler.h>
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <linux/posix_types.h>
|
|
|
|
|
2014-08-23 10:29:27 +00:00
|
|
|
struct file;
|
2016-03-13 06:45:57 +00:00
|
|
|
|
2016-02-26 19:23:56 +00:00
|
|
|
extern void fput(struct file *);
|
2018-02-02 14:53:42 +00:00
|
|
|
|
|
|
|
struct file_operations;
|
|
|
|
struct vfsmount;
|
|
|
|
struct dentry;
|
|
|
|
struct path;
|
2017-07-27 10:22:14 +00:00
|
|
|
struct fd {
|
|
|
|
struct file *file;
|
|
|
|
unsigned int flags;
|
|
|
|
};
|
|
|
|
#define FDPUT_FPUT 1
|
|
|
|
#define FDPUT_POS_UNLOCK 2
|
2016-02-26 19:23:56 +00:00
|
|
|
extern struct file *fget(unsigned int fd);
|
2014-02-06 06:52:49 +00:00
|
|
|
#endif /* __LINUX_FILE_H */
|