* -- Josef Siemes <jsiemes@web.de>, Aug 2002
*/
+#include <linux/config.h>
#include <linux/types.h>
#include <linux/string.h>
#include <linux/kernel.h>
unsigned short oflags;
last = &ic_first_dev;
- rtnl_lock();
+ rtnl_shlock();
/* bring loopback device up first */
if (dev_change_flags(&loopback_dev, loopback_dev.flags | IFF_UP) < 0)
continue;
}
if (!(d = kmalloc(sizeof(struct ic_device), GFP_KERNEL))) {
- rtnl_unlock();
+ rtnl_shunlock();
return -1;
}
d->dev = dev;
dev->name, able, d->xid));
}
}
- rtnl_unlock();
+ rtnl_shunlock();
*last = NULL;
struct ic_device *d, *next;
struct net_device *dev;
- rtnl_lock();
+ rtnl_shlock();
next = ic_first_dev;
while ((d = next)) {
next = d->next;
}
kfree(d);
}
- rtnl_unlock();
+ rtnl_shunlock();
}
/*
{
struct arphdr *rarp;
unsigned char *rarp_ptr;
- unsigned long sip, tip;
+ u32 sip, tip;
unsigned char *sha, *tha; /* s for "source", t for "target" */
struct ic_device *d;