Re: [RFC] [patch 2/6] [Network namespace] Network device sharing by view

2006-06-18 Thread Al Viro
On Fri, Jun 09, 2006 at 11:02:04PM +0200, [EMAIL PROTECTED] wrote: > + read_lock(&dev_base_lock); > + > + for (dev = dev_base; dev; dev = dev->next) > + if (!strncmp(dev->name, devname, IFNAMSIZ)) > + break; > + > + if (!dev) { > + ret = -ENO

Re: [RFC] [patch 2/6] [Network namespace] Network device sharing by view

2006-06-11 Thread Andrew Morton
On Fri, 09 Jun 2006 23:02:04 +0200 [EMAIL PROTECTED] wrote: > +int net_ns_dev_add(const char *devname, > +struct net_ns_dev_list *devlist) > +{ > + struct net_ns_dev *db; > + struct net_device *dev; > + int ret = 0; > + > + read_lock(&dev_base_lock); > + > + for

[RFC] [patch 2/6] [Network namespace] Network device sharing by view

2006-06-09 Thread dlezcano
Adds to the network namespace a device list view. This view is emptied when the unshare is done. The view is filled/emptied by a set of function which can be called by an external module. Replace-Subject: [Network namespace] Network device sharing by view Signed-off-by: Daniel Lezcano <[EMAIL PROT