Changes between Version 12 and Version 13 of kernel_syscalls


Ignore:
Timestamp:
Nov 9, 2014, 10:16:48 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • kernel_syscalls

    v12 v13  
    5252
    5353=== int '''_sys_nic_rx_alloc'''() ===
    54 This function allocates a private NIC_RX channel, and the associated RX chbuf to the calling task, and register the channel index in the task context.
    55 Return -1 if no NIC_RX channel available.
     54This function allocates a private NIC_RX channel, the associated NIC_RX chbuf, and a private CMA channel to the calling task, and register these channel indexes in the task context.
     55Return -1 if no NIC_RX channel available, or if no CMA channel available.
    5656
    5757=== int '''_sys_nic_tx_alloc'''() ===
    58 This function allocates a private NIC_TX channel, and the associated TX chbuf to the calling task, and register the channel index in the task context.
    59 Return -1 if no NIC_TX channel available.
     58This function allocates a private NIC_TX channel, the associated NIC_TX chbuf, and a private CMA channel to the calling task, and register these channel indexes in the task context.
     59Return -1 if no NIC_TX channel available, or if no CMA channel available.
    6060
    61 === int '''_sys_nic_send_container'''( void* vbuf ) ===
    62 This function transfer a 4kbytes container from an user buffer, to the private kernel TX chbuf allocated to the calling task. It is blocking if the kernel TX chbuf is full, with a time-out limit.
    63 Returns 0 if success, returns -1 if the user buffer address is illegal, returns -2 if there is no  NIC channel allocated to the calling task, returns -3 if the timeout is elapsed.
     61=== int '''_sys_nic_rx_start'''() ===
     62This function starts the NIC_RX and the CMA channels allocated to the calling task.
     63Returns -1 if no NIC_RX channel or no CMA channel allocated to the calling task.
    6464
    65 === int '''_sys_nic_receive_container'''( void* vbuf ) ===
    66 This function transfer a 4kbytes container from the private  RX chbuf allocated to the calling task, to an user buffer. It is blocking if the chbuf is empty, with a time_out limit.
    67 Returns 0 if success, returns -1 if the user buffer address is illegal, returns -2 if there is no  NIC channel allocated to the calling task, returns -3 if the timeout is elapsed.
     65=== int '''_sys_nic_tx_start'''() ===
     66This function starts the NIC_RX and the CMA channels allocated to the calling task.
     67Returns -1 if no NIC_RX channel or no CMA channel allocated to the calling task.
     68
     69=== int '''_sys_nic_rx_move'''( void* vbuf ) ===
     70This function moves one 4kbytes container from the private kernel NIC_RX chbuf allocated to the calling task, to an user buffer.
     71 * '''vbuf''' is the user buffer virtual base address.
     72It is blocking if the kernel NIC_RX chbuf is empty, with a time-out limit.
     73Returns 0 if success, returns -1 if the user buffer address is illegal, or if there is no  NIC_RX channel allocated to the calling task, or if the timeout is elapsed.
     74
     75=== int '''_sys_nic_tx_move'''( void* vbuf ) ===
     76This function moves one 4kbytes container from an user buffer, to the private kernel NIC_TX chbuf allocated to the calling task.
     77 * '''vbuf''' is the user buffer virtual base address.
     78It is blocking if the kernel NIC_TX chbuf is full, with a time-out limit.
     79Returns 0 if success, returns -1 if the user buffer address is illegal, or if there is no  NIC_TX channel allocated to the calling task, or if the timeout is elapsed.
    6880
    6981