Lines Matching full:indices
24 static int get_bridge_ifindices(struct net *net, int *indices, int num) in get_bridge_ifindices() argument
34 indices[i++] = dev->ifindex; in get_bridge_ifindices()
163 int num, *indices; in old_dev_ioctl() local
173 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in old_dev_ioctl()
174 if (indices == NULL) in old_dev_ioctl()
177 get_port_ifindices(br, indices, num); in old_dev_ioctl()
178 if (copy_to_user((void __user *)args[1], indices, num*sizeof(int))) in old_dev_ioctl()
180 kfree(indices); in old_dev_ioctl()
317 int *indices; in old_deviceless() local
322 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
323 if (indices == NULL) in old_deviceless()
326 args[2] = get_bridge_ifindices(net, indices, args[2]); in old_deviceless()
328 ret = copy_to_user((void __user *)args[1], indices, args[2]*sizeof(int)) in old_deviceless()
331 kfree(indices); in old_deviceless()