Changes between Version 5 and Version 6 of kernel_syscalls


Ignore:
Timestamp:
Oct 23, 2014, 3:58:35 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_syscalls

    v5 v6  
    88but some services are provided by the kernel itself:
    99
    10 === void        _sys_ukn() ===
     10=== void '''_sys_ukn'''() ===
    1111Function executed in case of undefined syscall
    1212
    13 === void         _proc_xyp( unsigned int* x,  unsigned int*,   unsigned int* p ) ===
     13=== void '''_proc_xyp'''( unsigned int* x,  unsigned int*,   unsigned int* p ) ===
    1414This function returns the processor (x,y,p) identifiers.
    1515
    16 === void         _task_exit() ===
     16=== void '''_task_exit'''() ===
    1717The calling task goes to sleeping state, after printing an exit message.
    1818It is descheduled and enters the "not runable" mode.
    1919
    20  === void         _context_switch() ===
     20 === void '''_context_switch'''() ===
    2121This function deschedules the calling task. It mask interrupts before calling the _ctx_switch, and restore it when the task is rescheduled.
    2222
    23  === unsigned int _local_task_id() ===
     23 === unsigned int '''_local_task_id'''() ===
    2424Returns current task local index (amongst tasks running on a given processor).
    2525
    26  === unsigned int _global_task_id() ===
     26 === unsigned int '''_global_task_id'''() ===
    2727Returns current task global index (amongst all tasks running on all processors).
    2828
    29 === unsigned int _thread_id() ===
     29=== unsigned int '''_thread_id'''() ===
    3030Returns current thread index (amongst all tasks in a given multi-tasks application).
    3131
    32  === unsigned int _procs_number( unsigned int  cluster_id, unsigned int* number ) ===
     32 === unsigned int '''_procs_number'''( unsigned int  cluster_id, unsigned int* number ) ===
    3333Returns in buffer argument the number of processors in cluster specified by the cluster_id argument.
    3434
    35  === unsigned int _get_vobj_ptr( char* vspace_name,  char* vobj_name,  mapping_vobj_t**  pvobj ) ===
     35 === unsigned int '''_get_vobj_ptr'''( char* vspace_name,  char* vobj_name,  mapping_vobj_t**  pvobj ) ===
    3636This function returns in the res_vobj argument a pointer on a vobj identified by the (vspace_name / vobj_name ) couple.
    3737Returns 0 if success, >0 if not found
    3838
    39  === unsigned int _vobj_get_vbase( char* vspace_name,  char* vobj_name,  unsigned int* vobj_vbase ) ===
     39 === unsigned int '''_vobj_get_vbase'''( char* vspace_name,  char* vobj_name,  unsigned int* vobj_vbase ) ===
    4040This function writes in vobj_base the virtual base address of a vobj  identified by the (vspace_name / vobj_name ) couple.
    4141Returns 0 if success, >0 if not found
    4242
    43  === unsigned int _vobj_get_length( char* vspace_name,  char* vobj_name,  unsigned int* vobj_length ) ===
     43 === unsigned int '''_vobj_get_length'''( char* vspace_name,  char* vobj_name,  unsigned int* vobj_length ) ===
    4444This function writes in vobj_length the length of a vobj identified by the (vspace_name / vobj_name ) couple.
    4545Returns 0 if success, >0 if not found
    4646
    47  === unsigned int _get_xy_from_ptr( void* ptr,  unsigned int*  px,  unsigned int*  py ) ===
     47 === unsigned int '''_get_xy_from_ptr'''( void* ptr,  unsigned int*  px,  unsigned int*  py ) ===
    4848This function returns in the (x,y) arguments the coordinates of the  cluster where is mapped the ptr virtual address. It use the _get_context_slot() function to get the calling task page table, and uses the _v2p_translate() function to obtain the physical address. Returns 0 if success, > 0 if ptr not mapped in the calling task vspace.
    4949