Lines Matching defs:indices
21 static int get_bridge_ifindices(struct net *net, int *indices, int num)
31 indices[i++] = dev->ifindex;
197 int num, *indices;
207 indices = kcalloc(num, sizeof(int), GFP_KERNEL);
208 if (indices == NULL)
211 get_port_ifindices(br, indices, num);
212 if (copy_to_user(argp, indices, array_size(num, sizeof(int))))
214 kfree(indices);
355 int *indices;
360 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL);
361 if (indices == NULL)
364 args[2] = get_bridge_ifindices(net, indices, args[2]);
366 ret = copy_to_user(argp, indices,
370 kfree(indices);