122 | | === 1) unsigned int '''giet_nic_tx_alloc'''( ) === |
123 | | This function allocates a private NIC_TX channel (coming with the associated kernel NIC_TX chbuf), and a private CMA channel to the calling task. It registers both indexes in the calling task context, and returns the NIC channel index, as this channel can be shared by severals tasks of a parallel multi-tasks application. |
124 | | The calling task exit if no available NIC_TX channel, or no available CMA channel. |
| 122 | === 1) unsigned int '''giet_nic_tx_alloc'''( unsigned int x_size, unsigned int y_size) === |
| 123 | This function allocates a private NIC_TX channel (coming with the associated kernel NIC_TX chbuf), and a private CMA channel to the calling task. It registers both indexes in the calling task context, and returns the NIC channel index. This channel can be shared by severals tasks of a parallel multi-tasks application. |
| 124 | The packets are transfered by the hardware to the NIC from a distributed kernel chbuf (one 4 Kbytes container per cluster), where the involved clusters are defined by the (x_size / y_size) parameters. |
| 125 | The calling task exit if no available NIC_TX channel, if no available CMA channel, if (x_size / y_size) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster. |
127 | | This function allocates a private NIC_RX channel (coming with the associated kernel NIC_RX chbuf), and a private CMA channel to the calling task. It registers both indexes |
128 | | in the calling task context, and returns the NIC channel index, as this channel can be shared by severals tasks of a parallel multi-tasks application. |
129 | | The calling task exit if no available NIC_RX channel, or no available CMA channel. |
| 128 | This function allocates a private NIC_RX channel (coming with the associated kernel NIC_RX chbuf), and a private CMA channel to the calling task. It registers both indexes in the calling task context, and returns the NIC channel index. This channel can be shared by severals tasks of a parallel multi-tasks application. |
| 129 | The packets are transfered by the hardware from the NIC to a distributed kernel chbuf (one 4 Kbytes container per cluster), where the involved clusters are defined by the (x_size / y_size) parameters. |
| 130 | The calling task exit if no available NIC_TX channel, if no available CMA channel, if (x_size / y_size) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster. |