TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Macros | Définitions de type | Fonctions
Référence du fichier ksyscall.h
#include <types.h>
Graphe des dépendances par inclusion de ksyscall.h:
Ce graphe montre quels fichiers incluent directement ou indirectement ce fichier :

Aller au code source de ce fichier.

Macros

#define UNUSED(X)   uint32_t _u_n_u_s_e_d_ ## X __attribute__ ((unused))
 
#define SYSCALL_HANDLER0(name)   void name(UNUSED(0), UNUSED(1), UNUSED(2))
 
#define SYSCALL_HANDLER1(name, param)   void name(param, UNUSED(1), UNUSED(2))
 
#define SYSCALL_HANDLER2(name, param1, param2)   void name(param1, param2, UNUSED(2))
 
#define SYSCALL_HANDLER3(name, param1, param2, param3)   void name(param1, param2, param3)
 
#define MAX_SYSCALL_NB   256
 

Définitions de type

typedef void(* syscall_handler_t )(uint32_t, uint32_t, uint32_t)
 

Fonctions

void init_syscall ()
 Initialisation des appels systemes. Plus de détails...
 
int syscall_set_handler (uint32_t syscall_id, syscall_handler_t handler)
 Associe un identifiant d'appel système à une handler. Plus de détails...
 
 SYSCALL_HANDLER3 (sys_dummy, uint32_t a, uint32_t b, uint32_t c)
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010, 2011, 2012 - TacOS developers.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Description de ce que fait le fichier

Documentation des fonctions

void init_syscall ( )

Initialise le système pour pouvoir exécuter correctement les appels systèmes

Voici le graphe d'appel pour cette fonction :

int syscall_set_handler ( uint32_t  syscall_id,
syscall_handler_t  handler 
)
Paramètres
syscall_idIdentifian de l'appel système.
handlerAdresse du handler
Renvoie
0 en cas de succès, une autre valeur sinon