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'''() === |
| 62 | This function starts the NIC_RX and the CMA channels allocated to the calling task. |
| 63 | Returns -1 if no NIC_RX channel or no CMA channel allocated to the calling task. |
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'''() === |
| 66 | This function starts the NIC_RX and the CMA channels allocated to the calling task. |
| 67 | Returns -1 if no NIC_RX channel or no CMA channel allocated to the calling task. |
| 68 | |
| 69 | === int '''_sys_nic_rx_move'''( void* vbuf ) === |
| 70 | This 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. |
| 72 | It is blocking if the kernel NIC_RX chbuf is empty, with a time-out limit. |
| 73 | Returns 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 ) === |
| 76 | This 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. |
| 78 | It is blocking if the kernel NIC_TX chbuf is full, with a time-out limit. |
| 79 | Returns 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. |