Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2 | pj | 1 | /* |
2 | * Project: HARTIK (HA-rd R-eal TI-me K-ernel) |
||
3 | * |
||
4 | * Coordinators: Giorgio Buttazzo <giorgio@sssup.it> |
||
5 | * Gerardo Lamastra <gerardo@sssup.it> |
||
6 | * |
||
7 | * Authors : Massimiliano Giorgi <massy@hartik.sssup.it> |
||
8 | * (see authors.txt for full list of hartik's authors) |
||
9 | * |
||
10 | * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy) |
||
11 | * |
||
12 | * http://www.sssup.it |
||
13 | * http://retis.sssup.it |
||
14 | * http://hartik.sssup.it |
||
15 | */ |
||
16 | |||
17 | /* |
||
18 | * Copyright (C) 1999 Massimiliano Giorgi |
||
19 | * |
||
20 | * This program is free software; you can redistribute it and/or modify |
||
21 | * it under the terms of the GNU General Public License as published by |
||
22 | * the Free Software Foundation; either version 2 of the License, or |
||
23 | * (at your option) any later version. |
||
24 | * |
||
25 | * This program is distributed in the hope that it will be useful, |
||
26 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
27 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
28 | * GNU General Public License for more details. |
||
29 | * |
||
30 | * You should have received a copy of the GNU General Public License |
||
31 | * along with this program; if not, write to the Free Software |
||
32 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
33 | * |
||
34 | */ |
||
35 | |||
36 | /* |
||
37 | * CVS : $Id: fileop.h,v 1.1.1.1 2002-03-29 14:12:50 pj Exp $ |
||
38 | * |
||
39 | * File: $File$ |
||
40 | * Revision: $Revision: 1.1.1.1 $ |
||
41 | * Last update: $Date: 2002-03-29 14:12:50 $ |
||
42 | */ |
||
43 | |||
44 | /*** |
||
45 | "Virtual" operations on files that must be exported by filesystem modules |
||
46 | ***/ |
||
47 | |||
48 | #ifndef __FILEOP_H__ |
||
49 | #define __FILEOP_H__ |
||
50 | |||
51 | #include <fs/types.h> |
||
52 | |||
53 | struct file_operations { |
||
54 | __off_t (*lseek) (struct file *, __off_t, int); |
||
55 | __ssize_t (*read) (struct file *, char *, __ssize_t); |
||
56 | __ssize_t (*write) (struct file *, char *, __ssize_t); |
||
57 | int (*readdir) (struct file *, void *); |
||
58 | int (*open) (struct inode *, struct file *); |
||
59 | int (*close) (struct inode *, struct file *); |
||
60 | }; |
||
61 | |||
62 | __off_t dummy_lseek(struct file *f, __off_t off, int whence); |
||
63 | __ssize_t dummy_read(struct file *f, char *p, __ssize_t d); |
||
64 | __ssize_t dummy_write(struct file *f, char *p, __ssize_t d); |
||
65 | int dummy_readdir(struct file *f, void *e); |
||
66 | int dummy_open(struct inode *i, struct file *f); |
||
67 | int dummy_close(struct inode *i, struct file *f); |
||
68 | |||
69 | #endif |