Re: dev_get_by_name example

2015-03-08 Thread Richard Weinberger
On Sun, Mar 8, 2015 at 2:04 PM, Ran Shalit wrote: > Hello, > > How should we use dev_get_by_name ? > What should be the 1st parameter should it be a pointer ? (without > allocation required) ? The network namespace you want to use. > struct net_device *dev_get_by_name(struct net *net, const char

dev_get_by_name example

2015-03-08 Thread Ran Shalit
Hello, How should we use dev_get_by_name ? What should be the 1st parameter should it be a pointer ? (without allocation required) ? struct net_device *dev_get_by_name(struct net *net, const char *name); I get an exception when using it for unallocated pointer in 1st argument, but succeeded with t