Lines Matching full:indices
20 static int get_bridge_ifindices(struct net *net, int *indices, int num) in get_bridge_ifindices() argument
30 indices[i++] = dev->ifindex; in get_bridge_ifindices()
159 int num, *indices; in old_dev_ioctl() local
169 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in old_dev_ioctl()
170 if (indices == NULL) in old_dev_ioctl()
173 get_port_ifindices(br, indices, num); in old_dev_ioctl()
174 if (copy_to_user((void __user *)args[1], indices, num*sizeof(int))) in old_dev_ioctl()
176 kfree(indices); in old_dev_ioctl()
312 int *indices; in old_deviceless() local
317 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
318 if (indices == NULL) in old_deviceless()
321 args[2] = get_bridge_ifindices(net, indices, args[2]); in old_deviceless()
323 ret = copy_to_user((void __user *)args[1], indices, args[2]*sizeof(int)) in old_deviceless()
326 kfree(indices); in old_deviceless()