Subversion Repositories HelenOS

Rev

Rev 2404 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2404 Rev 2435
Line 30... Line 30...
30
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
30
 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
31
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
31
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
32
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
32
 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
33
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
 */
34
 */
-
 
35
 
-
 
36
/** @addtogroup FileSystemImpl
-
 
37
* @{
-
 
38
*/
35
 
39
 
36
 
40
/**
-
 
41
 * @file    table.c
37
/* This file contains the table used to map system call numbers onto the
42
 * @brief   This file contains the table used to map system call numbers onto the
38
 * routines that perform them.
43
 *        routines that perform them.
39
 */
44
 */
40
 
45
 
41
#include "fs.h"
46
#include "fs.h"
42
#include "file.h"
47
#include "file.h"
43
#include "fproc.h"
48
#include "fproc.h"
44
#include "inode.h"
49
#include "inode.h"
45
#include "super.h"
50
#include "super.h"
46
 
51
 
-
 
52
/**
-
 
53
 * The call table for all FS task methods
-
 
54
 */
47
int (*call_vector[FS_CALLS])(void) = {
55
int (*call_vector[FS_CALLS])(void) = {
48
    no_sys,         /*  0 = unused  */
56
    no_sys,         /*  0 = unused  */
49
    do_open,        /*  1 = open    */
57
    do_open,        /*  1 = open    */
50
    do_lseek,       /*  2 = seek    */
58
    do_lseek,       /*  2 = seek    */
51
    do_read,        /*  3 = read    */
59
    do_read,        /*  3 = read    */
Line 55... Line 63...
55
    do_fstat,   /*  7 = fstat   */
63
    do_fstat,   /*  7 = fstat   */
56
    do_sum,     /*  8 = dsum    */
64
    do_sum,     /*  8 = dsum    */
57
    do_readentry    /*  9 = readentry */
65
    do_readentry    /*  9 = readentry */
58
};
66
};
59
 
67
 
-
 
68
 
-
 
69
/**
-
 
70
 * }
-
 
71
 */
-
 
72