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