]> Zhao Yanbai Git Server - minix.git/commitdiff
Al's system call -> kernel call changes
authorBen Gras <ben@minix3.org>
Fri, 14 Oct 2005 08:50:02 +0000 (08:50 +0000)
committerBen Gras <ben@minix3.org>
Fri, 14 Oct 2005 08:50:02 +0000 (08:50 +0000)
27 files changed:
kernel/system/do_abort.c
kernel/system/do_copy.c
kernel/system/do_devio.c
kernel/system/do_endksig.c
kernel/system/do_exec.c
kernel/system/do_exit.c
kernel/system/do_fork.c
kernel/system/do_getinfo.c
kernel/system/do_getksig.c
kernel/system/do_int86.c
kernel/system/do_irqctl.c
kernel/system/do_kill.c
kernel/system/do_memset.c
kernel/system/do_newmap.c
kernel/system/do_nice.c
kernel/system/do_privctl.c
kernel/system/do_sdevio.c
kernel/system/do_segctl.c
kernel/system/do_setalarm.c
kernel/system/do_sigreturn.c
kernel/system/do_sigsend.c
kernel/system/do_times.c
kernel/system/do_trace.c
kernel/system/do_umap.c
kernel/system/do_unused.c
kernel/system/do_vcopy.c
kernel/system/do_vdevio.c

index 21b3c5e601eb8c69759cdc9f60fd0c7f1669f392..87fa9390991b815f9102303992bd2da5121fef75 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_ABORT
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i1:   ABRT_HOW        (how to abort, possibly fetch monitor params)   
  *    m1_i2:   ABRT_MON_PROC   (proc nr to get monitor params from)    
  *    m1_i3:   ABRT_MON_LEN    (length of monitor params)
@@ -19,8 +19,8 @@
 PUBLIC int do_abort(m_ptr)
 message *m_ptr;                        /* pointer to request message */
 {
-/* Handle sys_abort. MINIX is unable to continue. This can originate e.g.
- * in the PM (normal abort or panic) or TTY (after CTRL-ALT-DEL). 
+/* Handle sys_abort. MINIX is unable to continue. This can originate in the
+ * PM (normal abort or panic) or FS (panic), or TTY (after CTRL-ALT-DEL). 
  */
   int how = m_ptr->ABRT_HOW;
   int proc_nr;
index 5e458978b6ed20a368069aeb608781a4b176a6d5..9c1431835d81ff7b70cd979628f6e7e6111433b1 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_VIRCOPY, SYS_PHYSCOPY
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m5_c1:   CP_SRC_SPACE            source virtual segment
  *    m5_l1:   CP_SRC_ADDR             source offset within segment
  *    m5_i1:   CP_SRC_PROC_NR          source process number
@@ -24,7 +24,7 @@ register message *m_ptr;      /* pointer to request message */
 {
 /* Handle sys_vircopy() and sys_physcopy().  Copy data using virtual or
  * physical addressing. Although a single handler function is used, there 
- * are two different system calls so that permissions can be checked. 
+ * are two different kernel calls so that permissions can be checked. 
  */
   struct vir_addr vir_addr[2]; /* virtual source and destination address */
   phys_bytes bytes;            /* number of bytes to copy */
index 5d22d63b8e7e64f2e6632e00778f28290361cd33..36241523a7e89f3d41c988d9c761b126cd696b2e 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_DEVIO
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *   m2_i3:    DIO_REQUEST     (request input or output)       
  *   m2_i1:    DIO_TYPE        (flag indicating byte, word, or long)
  *   m2_l1:    DIO_PORT        (port to read/ write)   
index 1dca1d432f81a9d3f4c1a823a5e31039985493b3..7e8038649329157131b902f138485405c877bd5f 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call that is implemented in this file:
+/* The kernel call that is implemented in this file:
  *   m_type:   SYS_ENDKSIG
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *     m2_i1:  SIG_PROC        # process for which PM is done
  */
 
index c322e52062e3811a77f930d1c0692c78dc339459..932d42ecacb3c4074a7659913cc9b1311b926a77 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_EXEC
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i1:   PR_PROC_NR              (process that did exec call)
  *    m1_p1:   PR_STACK_PTR            (new stack pointer)
  *    m1_p2:   PR_NAME_PTR             (pointer to program name)
index c76ecfa9a188f45e82317c2dfaeeafd8f9a81a3b..f8d6e1d3edea07f14fa8e198bc239dfe8ccab3b5 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_EXIT
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i1:   PR_PROC_NR              (slot number of exiting process)
  */
 
index a500da249d9730a52dfe555149217c078bba41e8..ec56cd9194db7d7c2b3165c0ee1f47349b337cae 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_FORK
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i1:   PR_PROC_NR      (child's process table slot)    
  *    m1_i2:   PR_PPROC_NR     (parent, process that forked)   
  */
index 9159a79d12a2412a0d5ae4eddf3d2e2c11424d0a..f6bed77a36d2fda5fcae0cc1cdcef1c5dffce95d 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_GETINFO
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i3:   I_REQUEST       (what info to get)      
  *    m1_p1:   I_VAL_PTR       (where to put it)       
  *    m1_i1:   I_VAL_LEN       (maximum length expected, optional)     
index d20d2f20588c70c21e15d4c83af8e40392c1ba26..1910d7df0d4463e945875bf1d08ceae5c023ed3f 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call that is implemented in this file:
+/* The kernel call that is implemented in this file:
  *   m_type:   SYS_GETKSIG
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *     m2_i1:  SIG_PROC        # process with pending signals
  *     m2_l1:  SIG_MAP         # bit map with pending signals
  */
@@ -18,7 +18,7 @@
 PUBLIC int do_getksig(m_ptr)
 message *m_ptr;                        /* pointer to request message */
 {
-/* PM is ready to accept signals and repeatedly does a system call to get 
+/* PM is ready to accept signals and repeatedly does a kernel call to get 
  * one. Find a process with pending signals. If no signals are available, 
  * return NONE in the process number field.
  * It is not sufficient to ready the process when PM is informed, because 
index 004d4b9ea8550f9eea62885e7062c484afdd0568..36df4ecde6391cafe670e45aee1854f1eed9bc3a 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_INT86
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_p1:   INT86_REG86     
  */
 
index 8282d63067e88ca03c7de1585879776181fb782f..3998e6cf92c48b1f6f9cd3830182d3a2d9071d26 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_IRQCTL
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m5_c1:   IRQ_REQUEST     (control operation to perform)  
  *    m5_c2:   IRQ_VECTOR      (irq line that must be controlled)
  *    m5_i1:   IRQ_POLICY      (irq policy allows reenabling interrupts)
index 442a0e4e898f36e119e3b7d7dda0db4a79914bc7..9b87a1fe71294b2c6d25e6e97eb02e23717bc246 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call that is implemented in this file:
+/* The kernel call that is implemented in this file:
  *   m_type:   SYS_KILL
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *     m2_i1:  SIG_PROC        # process to signal/ pending            
  *     m2_i2:  SIG_NUMBER      # signal number to send to process
  */
index eafaf2898ca95c14af2bdb02305b2b0aacbd764a..a6f88f606fa8cd613c946550b6518ac52188f81d 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_MEMSET
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m2_p1:   MEM_PTR         (virtual address)       
  *    m2_l1:   MEM_COUNT       (returns physical address)      
  *    m2_l2:   MEM_PATTERN     (size of datastructure)         
index 330c33bc57bc6b73ccb6cd950cd5b9c31c2aa716..f99f65dec5468f4014e2ec7392175de7f41e55dc 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_NEWMAP
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i1:   PR_PROC_NR              (install new map for this process)
  *    m1_p1:   PR_MEM_PTR              (pointer to the new memory map)
  */
index c879f7e97314b7d00c8225c50fc8e00c6e2abcac..cb0ad66921d203afc6448185a62ae362b2a4fed5 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_NICE
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i1:   PR_PROC_NR      process number to change priority
  *    m1_i2:   PR_PRIORITY     the new priority
  */
index bfd06a4459cebbd8aa6e2bc96ea97d689d82ecb2..b876192784476130f18daa41bd6eff707d9f3d1c 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_PRIVCTL
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i1:   PR_PROC_NR      (process number of caller)      
  */
 
index 976db7f97d3ef19d54e6f6ea649e7f584126e51a..831a18b8759b8fbdcb4ec9fb5440d834d442046f 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_SDEVIO
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m2_i3:   DIO_REQUEST     (request input or output)       
  *    m2_i1:   DIO_TYPE        (flag indicating byte, word, or long)
  *    m2_l1:   DIO_PORT        (port to read/ write)   
index b9f6f0017318f66618c30033fc603636746c33e0..b6bdd00f4f40d8c62a3b761435dde334d676596d 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_SEGCTL
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m4_l3:   SEG_PHYS        (physical base address)
  *    m4_l4:   SEG_SIZE        (size of segment)
  *    m4_l1:   SEG_SELECT      (return segment selector here)
index 85a4568742ebafaafaf389aeff4b7b37f96a01de..a20d3238396c8e997f677d0562cc942d2408750f 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_SETALARM 
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m2_l1:   ALRM_EXP_TIME           (alarm's expiration time)
  *    m2_i2:   ALRM_ABS_TIME           (expiration time is absolute?)
  *    m2_l1:   ALRM_TIME_LEFT          (return seconds left of previous)
index 9b8bed41455b48e5faae3c29649cf6889d32d725..a821d3b3c451d9060d0f1d44cad2f7423eff23b7 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call that is implemented in this file:
+/* The kernel call that is implemented in this file:
  *   m_type:   SYS_SIGRETURN
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *     m2_i1:  SIG_PROC        # process returning from handler
  *     m2_p1:  SIG_CTXT_PTR    # pointer to sigcontext structure
  *
index f370483888ebcdeb4be41049eeef71cfa7f11fae..712152712a667de80037e42b28d1668c229ce059 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call that is implemented in this file:
+/* The kernel call that is implemented in this file:
  *   m_type:   SYS_SIGSEND
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *     m2_i1:  SIG_PROC        # process to call signal handler
  *     m2_p1:  SIG_CTXT_PTR    # pointer to sigcontext structure
  *     m2_i3:  SIG_FLAGS       # flags for S_SIGRETURN call    
index bbd925bcca80bc9cdb5d13d772c2fe734a190e9b..53b9bec241fe76a3699df474b0ec13cfa7d27bf6 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_TIMES
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m4_l1:   T_PROC_NR               (get info for this process)     
  *    m4_l1:   T_USER_TIME             (return values ...)     
  *    m4_l2:   T_SYSTEM_TIME   
@@ -22,7 +22,7 @@ register message *m_ptr;      /* pointer to request message */
   register struct proc *rp;
   int proc_nr;
 
-  /* Insert the times needed by the SYS_TIMES system call in the message. 
+  /* Insert the times needed by the SYS_TIMES kernel call in the message. 
    * The clock's interrupt handler may run to update the user or system time
    * while in this code, but that cannot do any harm.
    */
index 7b7328a07a59ee0233ae5645f9ab2bfbb3b89d90..0e62842eb31d9cb3c803aa4a8929b71c47c6b940 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_TRACE
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m2_i1:   CTL_PROC_NR     process that is traced
  *    m2_i2:    CTL_REQUEST    trace request
  *    m2_l1:    CTL_ADDRESS     address at traced process' space
index 79956e19fe5bc17ef97e7beb84e1bebce628a52f..04c981e72d6ab3087370cf365df1f2f2affdc12e 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_UMAP
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m5_i1:   CP_SRC_PROC_NR  (process number)        
  *    m5_c1:   CP_SRC_SPACE    (segment where address is: T, D, or S)
  *    m5_l1:   CP_SRC_ADDR     (virtual address)       
index 61bfba040bdf460121120996d724e521ed5896fe..4e2b0001b259c2264a555d0fd67937448fac8196 100644 (file)
@@ -1,4 +1,4 @@
-/* This file provides a catch-all handler for unused system calls. A system 
+/* This file provides a catch-all handler for unused kernel calls. A kernel 
  * call may be unused when it is not defined or when it is disabled in the
  * kernel's configuration.
  */
index 47260cfc57d9f3e0f2c6600b66ee7783e03476c0..8db9e9526890ce2c7a4dcfbbef3e566114bc2019 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_VIRVCOPY, SYS_PHYSVCOPY 
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m1_i3:   VCP_VEC_SIZE            size of copy request vector 
  *    m1_p1:   VCP_VEC_ADDR            address of vector at caller 
  *    m1_i2:   VCP_NR_OK               number of successfull copies    
@@ -23,7 +23,7 @@ register message *m_ptr;      /* pointer to request message */
 {
 /* Handle sys_virvcopy() and sys_physvcopy() that pass a vector with copy
  * requests. Although a single handler function is used, there are two
- * different system calls so that permissions can be checked.
+ * different kernel calls so that permissions can be checked.
  */
   int nr_req;
   int caller_pid;
index f79fbff47294c3e21b0c0ae116a7b4d3e2c6a430..54a5d65f2827f7975e9a055e8ea842537c382f19 100644 (file)
@@ -1,7 +1,7 @@
-/* The system call implemented in this file:
+/* The kernel call implemented in this file:
  *   m_type:   SYS_VDEVIO
  *
- * The parameters for this system call are:
+ * The parameters for this kernel call are:
  *    m2_i3:   DIO_REQUEST     (request input or output)       
  *    m2_i1:   DIO_TYPE        (flag indicating byte, word, or long)
  *    m2_p1:   DIO_VEC_ADDR    (pointer to port/ value pairs)