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