Changes between Version 52 and Version 53 of kernel_syscalls


Ignore:
Timestamp:
Dec 9, 2016, 7:03:38 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_syscalls

    v52 v53  
    1919== __Threads related syscall handlers__ ==
    2020
    21 === 1) int '''_sys_pthread_create'''( pthread_t * buffer , void * attr , void * function , void * arg ) ===
     21=== 1) int '''_sys_pthread_create'''( pthread_t * trdid , void * attr , void * function , void * arg ) ===
    2222This function search in the mapping a thread that is declared in the same space as the calling (parent) thread,
    2323and has the entry point defined by the function <argument>. If it found a matching thread in the mapping,
    2424this thread is activated.
    25  * '''buffer''' : pointer on buffer to store the activated thread TRDID.
     25 * '''trdid''' : pointer on buffer for allocated trdid.
    2626 * '''attr''' : the attribute argument is not supported : must be NULL.
    2727 * '''function''' : pointer on the thread entry function.
     
    3030
    3131=== 2) int '''_sys_pthread_join'''( pthread_t trdid ) ===
     32This blocking function returns only when the thread identified by the <trdid> argument exit.
    3233
    3334=== 3) int '''_sys_pthread_kill'''( pthread_t trdid , int signal ) ===
     35This function send a SIGKILL signal to the thread identified by the <trdid> argument. The target thread will be desactivated at the next scheduling point.
    3436
    3537=== 4) int '''_sys_pthread_exit'''( void* string ) ===
     38This function deschedules and desactivates the calling thread.
    3639
    3740=== 5) int '''_sys_pthread_yield'''( ) ===
    3841
    39 === 6) void '''_sys_kthread_create'''( unsigned int x , unsigned int y , unsigned int p , void * function , void * arg ) ===
     42=== 6) void '''_sys_kthread_create'''( unsigned int * trdid , unsigned int x , unsigned int y , unsigned int p , void * function , void * arg ) ===
    4043This function initializes a kernel thread context, for a core identified by the <x,y,p> arguments, in a given scheduler.
    4144It allocate a new "ltid" and update the threads field in the scheduler.
    4245It is used in kernel-init to create the NIC_TX and NIC_RX kernel threads.
     46 * '''trdid''' : pointer on buffer for allocated trdid.
    4347 * '''x''' : X cluster coordinate.
    4448 * '''y''' : Y cluster coordinate.