Network Device Driver
I have written a network driver with help of Alexender Rubino's book.
My driver initialiation code works well and successfully initializes the net_device structure. The irq is to be allocated in the open function. My open method starts as:-
int netdriver_open(struct net_device *dev)
printk(KERN_DEBUG "Start of open method\n");
Loading the module is successful. My interface is sn0. But when i try
# ifconfig sn0 192.168.1.1
SIOCSIFFLAGS: Invalid argument
There is no related message in /var/log/messages. The open method is not even called. Plz help
Can you check u have something like below code
struct net_device *dev
dev->open = netdriver_open; //used for calling file operation open()
Thanks. i have done with the probs. I modified code for 2.6.23 kernel it worked well.