Changes between Version 45 and Version 46 of library_stdio


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

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v45 v46  
    120120The NIC channel and the CMA channel are registered in the task context.
    121121
    122  === 1) unsigned int '''giet_nic_tx_alloc'''( unsigned int x_size,  unsigned int y_size) ===
     122 === 1) unsigned int '''giet_nic_tx_alloc'''( unsigned int xmax,  unsigned int ymax) ===
    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. 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.
    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.
    127 
    128  === 2) unsigned int '''giet_nic_rx_alloc'''( ) ===
     124The packets are transfered by the hardware to the NIC from a distributed kernel chbuf (one 4 Kbytes container per cluster), where the number of involved clusters is defined by the (xmax / ymax) parameters. The (xmax / ymax) arguments cannot be larger than (X_SIZE / Y_SIZE) defining the max number of clusters in the platform, but they can be smaller.
     125The calling task exit if no available NIC_TX channel,  if no available CMA channel, if (xmax / ymax) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster.
     126
     127 === 2) unsigned int '''giet_nic_rx_alloc'''( unsigned int xmax,  unsigned int ymax ) ===
    129128This 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.
    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.
    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.
     129The packets are transfered by the hardware from the NIC to a distributed kernel chbuf (one 4 Kbytes container per cluster), where the number of involved clusters is defined by the (xmax / ymax) parameters. The (xmax / ymax) arguments cannot be larger than (X_SIZE / Y_SIZE) defining the max number of clusters in the platform, but they can be smaller.
     130The calling task exit if no available NIC_TX channel,  if no available CMA channel, if (xmax / ymax) are too large, or if there is not enough memory for the distributed kernel containers in one selected cluster.
    133131
    134132 === 3) void '''giet_nic_tx_start'''( unsigned int channel ) ===