Kernel Functions
Prev | Chapter 8. Serial Drivers |

## Kernel Functions

### qcaspi_netdev_xmit

`int qcaspi_netdev_xmit(` | skb, |
| device`)`; |

`struct sk_buff * skb`;
`struct net_device * device`;

Called by the Linux kernel append outgoing frames to the transmit queue.

### qcaspi_netdev_tx_timeout

`void qcaspi_netdev_tx_timeout(` | device`)`; |

`struct net_device * device`;

Called by the Linux kernel after the transmit queue has been stopped for an extended period of time.

### qcaspi_netdev_uninit

`static void qcaspi_netdev_uninit(` | device`)`; |

`struct net_device * device`;

Called when function `unregister_netdev` is called. For the QCA7000 driver, function `qcaspi_mod_exit` calls function `unregister_netdev`.

### qcaspi_netdev_get_stats

`struct net_device_stats * qcaspi_netdev_get_stats(` | device`)`; |

`struct net_device * device`;

Returns transmit, receive and error statistics associated with the net device. These are the statistics displayed by ifconfig.

### qcaspi_netdev_change_mtu

`int qcaspi_netdev_change_mtu(` | device, |
| new_mtu`)`; |

`struct net_device * device`;
`int new_mtu`;

Changes the serial interface MTU size.

### qcaspi_netdev_set_mac_address

`static int qcaspi_netdev_set_mac_address(` | device, |
| memory`)`; |

`struct net_device * device`;
`void * memory`;

Sets the serial interface MAC address. Called by ifconfig whenever user types ifconfig qca0 hw ether xx:xx:xx:xx:xx:xx.

### qcaspi_netdev_close

`int qcaspi_netdev_close(` | device`)`; |

`struct net_device * device`;

Called by ifconfig to disable the network interface.

### qcaspi_mod_exit

`static void qcaspi_mod_exit(` | void`)`; |

`void`;

Called by the kernel to shutdown the driver module.

Prev | Up |
Support Functions | Home |