source: branches/minix3-book/kernel/system.h@ 11

Last change on this file since 11 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 2.0 KB
RevLine 
[4]1/* Function prototypes for the system library.
2 * The implementation is contained in src/kernel/system/.
3 *
4 * The system library allows access to system services by doing a kernel call.
5 * Kernel calls are transformed into request messages to the SYS task that is
6 * responsible for handling the call. By convention, sys_call() is transformed
7 * into a message with type SYS_CALL that is handled in a function do_call().
8 */
9
10#ifndef SYSTEM_H
11#define SYSTEM_H
12
13/* Common includes for the system library. */
14#include "kernel.h"
15#include "proto.h"
16#include "proc.h"
17
18/* Default handler for unused kernel calls. */
19_PROTOTYPE( int do_unused, (message *m_ptr) );
20_PROTOTYPE( int do_exec, (message *m_ptr) );
21_PROTOTYPE( int do_fork, (message *m_ptr) );
22_PROTOTYPE( int do_newmap, (message *m_ptr) );
23_PROTOTYPE( int do_exit, (message *m_ptr) );
24_PROTOTYPE( int do_trace, (message *m_ptr) );
25_PROTOTYPE( int do_nice, (message *m_ptr) );
26_PROTOTYPE( int do_copy, (message *m_ptr) );
27#define do_vircopy do_copy
28#define do_physcopy do_copy
29_PROTOTYPE( int do_vcopy, (message *m_ptr) );
30#define do_virvcopy do_vcopy
31#define do_physvcopy do_vcopy
32_PROTOTYPE( int do_umap, (message *m_ptr) );
33_PROTOTYPE( int do_memset, (message *m_ptr) );
34_PROTOTYPE( int do_abort, (message *m_ptr) );
35_PROTOTYPE( int do_getinfo, (message *m_ptr) );
36_PROTOTYPE( int do_privctl, (message *m_ptr) );
37_PROTOTYPE( int do_segctl, (message *m_ptr) );
38_PROTOTYPE( int do_irqctl, (message *m_ptr) );
39_PROTOTYPE( int do_devio, (message *m_ptr) );
40_PROTOTYPE( int do_vdevio, (message *m_ptr) );
41_PROTOTYPE( int do_int86, (message *m_ptr) );
42_PROTOTYPE( int do_sdevio, (message *m_ptr) );
43_PROTOTYPE( int do_kill, (message *m_ptr) );
44_PROTOTYPE( int do_getksig, (message *m_ptr) );
45_PROTOTYPE( int do_endksig, (message *m_ptr) );
46_PROTOTYPE( int do_sigsend, (message *m_ptr) );
47_PROTOTYPE( int do_sigreturn, (message *m_ptr) );
48_PROTOTYPE( int do_times, (message *m_ptr) );
49_PROTOTYPE( int do_setalarm, (message *m_ptr) );
50
51#endif /* SYSTEM_H */
52
53
54
Note: See TracBrowser for help on using the repository browser.