search for: rtnl_shunlock

Displaying 2 results from an estimated 2 matches for "rtnl_shunlock".

Did you mean: rtnl_shlock
2007 Apr 18
1
[Bridge] [PATCH] bridge use read_lock when scanning device list
...c Mon Jan 12 13:45:44 2004 @@ -252,12 +252,12 @@ struct net_device *dev; int i = 0; - rtnl_shlock(); + read_lock(&dev_base_lock); for (dev = dev_base; dev && i < num; dev = dev->next) { if (dev->priv_flags & IFF_EBRIDGE) indices[i++] = dev->ifindex; } - rtnl_shunlock(); + read_unlock(&dev_base_lock); return i; }
2003 May 22
0
[PATCH 2.5.69 1/3] remove ipconfig support from the kernel
...oto_enabled && !able) - continue; - oflags = dev->flags; - if (dev_change_flags(dev, oflags | IFF_UP) < 0) { - printk(KERN_ERR "IP-Config: Failed to open %s\n", dev->name); - continue; - } - if (!(d = kmalloc(sizeof(struct ic_device), GFP_KERNEL))) { - rtnl_shunlock(); - return -1; - } - d->dev = dev; - *last = d; - last = &d->next; - d->flags = oflags; - d->able = able; - if (able & IC_BOOTP) - get_random_bytes(&d->xid, sizeof(u32)); - else - d->xid = 0; - ic_proto_have_if |= able; - DBG(("IP-Con...