Implementing ioctl in network drivers
Hi
I would like to implement ioctl calls from ifconfig in my network driver. How do I approach it? I was seeing the code from e100.c and it uses just the following code...
static int e100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd)
{
struct nic *nic = netdev_priv(netdev);
return generic_mii_ioctl(&nic->mii, if_mii(ifr), cmd, NULL);
}
Any clue what is it doing? Is there any other way to implement ioctl calls?
Sanjay
|