Rev 6336 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4559 | Serge | 1 | /* |
2 | * Wrapper functions for accessing the file_struct fd array. |
||
3 | */ |
||
4 | |||
5 | #ifndef __LINUX_FILE_H |
||
6 | #define __LINUX_FILE_H |
||
6293 | serge | 7 | |
8 | #include |
||
9 | #include |
||
10 | #include |
||
11 | |||
5056 | serge | 12 | struct file; |
6336 | serge | 13 | |
6293 | serge | 14 | extern void fput(struct file *); |
6934 | serge | 15 | struct fd { |
16 | struct file *file; |
||
17 | unsigned int flags; |
||
18 | }; |
||
19 | #define FDPUT_FPUT 1 |
||
20 | #define FDPUT_POS_UNLOCK 2 |
||
6293 | serge | 21 | extern struct file *fget(unsigned int fd); |
4559 | Serge | 22 | #endif /* __LINUX_FILE_H */ |