New for 2.6.31: net_device_ops structure. How do I set function pointers?
Hello,
In kernel 2.6.31 it appears that a bunch of the function pointers to net_device operations disappeared from the net_device structure, and were put into a new net_device_ops structure which is a const member of the new copy of net_device. ...If netdev_ops is declared const (and unitialized) in net_device, how am I supposed to do things like: Code:
mynet_device->netdev_ops->ndo_open = my_drivers_open_function(); |
I was able to resolve this.
In the net_device struct (2.6.31+) the mew net_device_ops member is declared as: Code:
const struct net_device_ops *netdev_ops; Code:
mynet_dev->netdev_ops = &mynetdev_ops; |
All times are GMT -5. The time now is 05:14 AM. |