Changes between Version 51 and Version 52 of kernel_syscalls


Ignore:
Timestamp:
Dec 5, 2016, 12:54:53 AM (7 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_syscalls

    v51 v52  
    1919== __Threads related syscall handlers__ ==
    2020
    21 === 1) int '''_sys_pthread_create'''( pthread_t* buffer , void* function ) ===
     21=== 1) int '''_sys_pthread_create'''( pthread_t * buffer , void * attr , void * function , void * arg ) ===
     22This function search in the mapping a thread that is declared in the same space as the calling (parent) thread,
     23and has the entry point defined by the function <argument>. If it found a matching thread in the mapping,
     24this thread is activated.
     25 * '''buffer''' : pointer on buffer to store the activated thread TRDID.
     26 * '''attr''' : the attribute argument is not supported : must be NULL.
     27 * '''function''' : pointer on the thread entry function.
     28 * '''arg''' : pointer on function argument.
     29Returns 0 if success / returns -1 if matching thread not found.
    2230
    2331=== 2) int '''_sys_pthread_join'''( pthread_t trdid ) ===
     
    2836
    2937=== 5) int '''_sys_pthread_yield'''( ) ===
     38
     39=== 6) void '''_sys_kthread_create'''( unsigned int x , unsigned int y , unsigned int p , void * function , void * arg ) ===
     40This function initializes a kernel thread context, for a core identified by the <x,y,p> arguments, in a given scheduler.
     41It allocate a new "ltid" and update the threads field in the scheduler.
     42It is used in kernel-init to create the NIC_TX and NIC_RX kernel threads.
     43 * '''x''' : X cluster coordinate.
     44 * '''y''' : Y cluster coordinate.
     45 * '''p''' : local processor index in cluster.
     46 * '''function''' : pointer on the thread entry function.
     47 * '''arg''' : pointer on function argument.
    3048
    3149== __Coprocessors related syscall handlers__ ==