Al's system -> kernel call rename

This commit is contained in:
Ben Gras 2005-10-14 09:14:49 +00:00
parent aa1a6bf82a
commit 975e5cec41
3 changed files with 12 additions and 12 deletions

View File

@ -1,10 +1,10 @@
/* This task handles the interface between the kernel and user-space system /* This task handles the interface between the kernel and user-space system
* processes. System services can be accessed by doing a system call. System * processes. System services can be accessed by doing a kernel call. System
* calls are transformed into request messages, which are handled by this * calls are transformed into request messages, which are handled by this
* task. By convention, a sys_call() is transformed in a SYS_CALL request * task. By convention, a sys_call() is transformed in a SYS_CALL request
* message that is handled in a function named do_call(). * message that is handled in a function named do_call().
* *
* A private call vector is used to map all system calls to the functions that * A private call vector is used to map all kernel calls to the functions that
* handle them. The actual handler functions are contained in separate files * handle them. The actual handler functions are contained in separate files
* to keep this file clean. The call vector is used in the system task's main * to keep this file clean. The call vector is used in the system task's main
* loop to handle all incoming requests. * loop to handle all incoming requests.
@ -24,7 +24,7 @@
* Aug 04, 2005 check if kernel call is allowed (Jorrit N. Herder) * Aug 04, 2005 check if kernel call is allowed (Jorrit N. Herder)
* Jul 20, 2005 send signal to services with message (Jorrit N. Herder) * Jul 20, 2005 send signal to services with message (Jorrit N. Herder)
* Jan 15, 2005 new, generalized virtual copy function (Jorrit N. Herder) * Jan 15, 2005 new, generalized virtual copy function (Jorrit N. Herder)
* Oct 10, 2004 dispatch system calls from call vector (Jorrit N. Herder) * Oct 10, 2004 dispatch kernel calls from call vector (Jorrit N. Herder)
* Sep 30, 2004 source code documentation updated (Jorrit N. Herder) * Sep 30, 2004 source code documentation updated (Jorrit N. Herder)
*/ */
@ -39,9 +39,9 @@
#include "protect.h" #include "protect.h"
#endif #endif
/* Declaration of the call vector that defines the mapping of system calls /* Declaration of the call vector that defines the mapping of kernel calls
* to handler functions. The vector is initialized in sys_init() with map(), * to handler functions. The vector is initialized in sys_init() with map(),
* which makes sure the system call numbers are ok. No space is allocated, * which makes sure the kernel call numbers are ok. No space is allocated,
* because the dummy is declared extern. If an illegal call is given, the * because the dummy is declared extern. If an illegal call is given, the
* array size will be negative and this won't compile. * array size will be negative and this won't compile.
*/ */
@ -87,7 +87,7 @@ PUBLIC void sys_task()
} }
/* Send a reply, unless inhibited by a handler function. Use the kernel /* Send a reply, unless inhibited by a handler function. Use the kernel
* function lock_send() to prevent a system call trap. The destination * function lock_send() to prevent a kernel call trap. The destination
* is known to be blocked waiting for a message. * is known to be blocked waiting for a message.
*/ */
if (result != EDONTREPLY) { if (result != EDONTREPLY) {
@ -117,7 +117,7 @@ PRIVATE void initialize(void)
tmr_inittimer(&(sp->s_alarm_timer)); tmr_inittimer(&(sp->s_alarm_timer));
} }
/* Initialize the call vector to a safe default handler. Some system calls /* Initialize the call vector to a safe default handler. Some kernel calls
* may be disabled or nonexistant. Then explicitely map known calls to their * may be disabled or nonexistant. Then explicitely map known calls to their
* handler functions. This is done with a macro that gives a compile error * handler functions. This is done with a macro that gives a compile error
* if an illegal call number is used. The ordering is not important here. * if an illegal call number is used. The ordering is not important here.
@ -261,7 +261,7 @@ int sig_nr; /* signal to be sent, 1 to _NSIG */
* signals and makes sure the PM gets them by sending a notification. The * signals and makes sure the PM gets them by sending a notification. The
* process being signaled is blocked while PM has not finished all signals * process being signaled is blocked while PM has not finished all signals
* for it. * for it.
* Race conditions between calls to this function and the system calls that * Race conditions between calls to this function and the kernel calls that
* process pending kernel signals cannot exist. Signal related functions are * process pending kernel signals cannot exist. Signal related functions are
* only called when a user process causes a CPU exception and from the kernel * only called when a user process causes a CPU exception and from the kernel
* process level, which runs to completion. * process level, which runs to completion.

View File

@ -2,7 +2,7 @@
* are undefined to do_unused if the kernel call is not enabled in config.h. * are undefined to do_unused if the kernel call is not enabled in config.h.
* The implementation is contained in src/kernel/system/. * The implementation is contained in src/kernel/system/.
* *
* The system library allows to access system services by doing a system call. * The system library allows to access system services by doing a kernel call.
* System calls are transformed into request messages to the SYS task that is * System calls are transformed into request messages to the SYS task that is
* responsible for handling the call. By convention, sys_call() is transformed * responsible for handling the call. By convention, sys_call() is transformed
* into a message with type SYS_CALL that is handled in a function do_call(). * into a message with type SYS_CALL that is handled in a function do_call().
@ -11,7 +11,7 @@
* Jul 30, 2005 created SYS_INT86 to support BIOS driver (Philip Homburg) * Jul 30, 2005 created SYS_INT86 to support BIOS driver (Philip Homburg)
* Jul 13, 2005 created SYS_PRIVCTL to manage services (Jorrit N. Herder) * Jul 13, 2005 created SYS_PRIVCTL to manage services (Jorrit N. Herder)
* Jul 09, 2005 updated SYS_KILL to signal services (Jorrit N. Herder) * Jul 09, 2005 updated SYS_KILL to signal services (Jorrit N. Herder)
* Jun 21, 2005 created SYS_NICE for nice(2) system call (Ben J. Gras) * Jun 21, 2005 created SYS_NICE for nice(2) kernel call (Ben J. Gras)
* Jun 21, 2005 created SYS_MEMSET to speed up exec(2) (Ben J. Gras) * Jun 21, 2005 created SYS_MEMSET to speed up exec(2) (Ben J. Gras)
* Apr 12, 2005 updated SYS_VCOPY for virtual_copy() (Jorrit N. Herder) * Apr 12, 2005 updated SYS_VCOPY for virtual_copy() (Jorrit N. Herder)
* Jan 20, 2005 updated SYS_COPY for virtual_copy() (Jorrit N. Herder) * Jan 20, 2005 updated SYS_COPY for virtual_copy() (Jorrit N. Herder)

View File

@ -19,8 +19,8 @@
PUBLIC int do_abort(m_ptr) PUBLIC int do_abort(m_ptr)
message *m_ptr; /* pointer to request message */ message *m_ptr; /* pointer to request message */
{ {
/* Handle sys_abort. MINIX is unable to continue. This can originate in the /* Handle sys_abort. MINIX is unable to continue. This can originate e.g.
* PM (normal abort or panic) or FS (panic), or TTY (after CTRL-ALT-DEL). * in the PM (normal abort or panic) or TTY (after CTRL-ALT-DEL).
*/ */
int how = m_ptr->ABRT_HOW; int how = m_ptr->ABRT_HOW;
int proc_nr; int proc_nr;