On Thu, 20 Jul 2000, Vinay Vernekar wrote:
> I wanted to know if the dev->open method provided in the struct device called as
>many times as I open the device (through setting the IFF_UP flag, or is there any
>other way of opening the device??)
> What I want to know is - Is the open method called if an interface is already open?
dev->open is only called once.
In twenty seconds with the source code:
net/core/dev.c
________________
int dev_open(struct device *dev)
{
int ret = 0;
/*
* Is it already up?
*/
if (dev->flags&IFF_UP)
return 0;
/*
* Call device private open method
*/
if (dev->open)
ret = dev->open(dev);
Donald Becker [EMAIL PROTECTED]
Scyld Computing Corporation http://www.scyld.com
410 Severn Ave. Suite 210 Beowulf Clusters / Linux Installations
Annapolis MD 21403
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]