Changes between Version 44 and Version 45 of library_stdio


Ignore:
Timestamp:
Jan 23, 2015, 9:10:27 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v44 v45  
    122122 === 1) unsigned int '''giet_nic_tx_alloc'''( unsigned int x_size,  unsigned int y_size) ===
    123123This 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.
     124The 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,
     125but they can be smaller.
    125126The 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.
    126127
    127128 === 2) unsigned int '''giet_nic_rx_alloc'''( ) ===
    128129This 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.
     130The 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,
     131but they can be smaller.
    130132The 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.
    131133