master/debug.c
branchstable-1.5
changeset 2522 ec403cf308eb
parent 1921 d9cf40facbc4
equal deleted inserted replaced
2521:3d68bb0047a1 2522:ec403cf308eb
   198 /******************************************************************************
   198 /******************************************************************************
   199  *  NET_DEVICE functions
   199  *  NET_DEVICE functions
   200  *****************************************************************************/
   200  *****************************************************************************/
   201 
   201 
   202 /** Opens the virtual network device.
   202 /** Opens the virtual network device.
       
   203  *
       
   204  * \return Always zero (success).
   203  */
   205  */
   204 int ec_dbgdev_open(
   206 int ec_dbgdev_open(
   205         struct net_device *dev /**< debug net_device */
   207         struct net_device *dev /**< debug net_device */
   206         )
   208         )
   207 {
   209 {
   213 }
   215 }
   214 
   216 
   215 /*****************************************************************************/
   217 /*****************************************************************************/
   216 
   218 
   217 /** Stops the virtual network device.
   219 /** Stops the virtual network device.
       
   220  *
       
   221  * \return Always zero (success).
   218  */
   222  */
   219 int ec_dbgdev_stop(
   223 int ec_dbgdev_stop(
   220         struct net_device *dev /**< debug net_device */
   224         struct net_device *dev /**< debug net_device */
   221         )
   225         )
   222 {
   226 {
   228 }
   232 }
   229 
   233 
   230 /*****************************************************************************/
   234 /*****************************************************************************/
   231 
   235 
   232 /** Transmits data via the virtual network device.
   236 /** Transmits data via the virtual network device.
       
   237  *
       
   238  * \return Always zero (success).
   233  */
   239  */
   234 int ec_dbgdev_tx(
   240 int ec_dbgdev_tx(
   235         struct sk_buff *skb, /**< transmit socket buffer */
   241         struct sk_buff *skb, /**< transmit socket buffer */
   236         struct net_device *dev /**< EoE net_device */
   242         struct net_device *dev /**< EoE net_device */
   237         )
   243         )
   244 }
   250 }
   245 
   251 
   246 /*****************************************************************************/
   252 /*****************************************************************************/
   247 
   253 
   248 /** Gets statistics about the virtual network device.
   254 /** Gets statistics about the virtual network device.
       
   255  *
       
   256  * \return Statistics.
   249  */
   257  */
   250 struct net_device_stats *ec_dbgdev_stats(
   258 struct net_device_stats *ec_dbgdev_stats(
   251         struct net_device *dev /**< debug net_device */
   259         struct net_device *dev /**< debug net_device */
   252         )
   260         )
   253 {
   261 {