Changes between Version 44 and Version 45 of library_stdio
- Timestamp:
- Jan 23, 2015, 9:10:27 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v44 v45 122 122 === 1) unsigned int '''giet_nic_tx_alloc'''( unsigned int x_size, unsigned int y_size) === 123 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. 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. The (x_size / y_size) cannot be larger than the (X_SIZE / Y_SIZE) defining the max number of clusters in the hardware, 125 but they can be smaller. 125 126 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. 126 127 127 128 === 2) unsigned int '''giet_nic_rx_alloc'''( ) === 128 129 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 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. The (x_size / y_size) cannot be larger than the (X_SIZE / Y_SIZE) defining the max number of clusters in the hardware, 131 but they can be smaller. 130 132 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. 131 133