Lines Matching refs:tun_file

144 struct tun_file {  struct
179 struct tun_file __rcu *tfiles[MAX_TAP_QUEUES];
328 struct tun_file *tfile) in tun_flow_update()
432 static void tun_disable_queue(struct tun_struct *tun, struct tun_file *tfile) in tun_disable_queue()
439 static struct tun_struct *tun_enable_queue(struct tun_file *tfile) in tun_enable_queue()
449 static void tun_queue_purge(struct tun_file *tfile) in tun_queue_purge()
455 static void __tun_detach(struct tun_file *tfile, bool clean) in __tun_detach()
457 struct tun_file *ntfile; in __tun_detach()
503 static void tun_detach(struct tun_file *tfile, bool clean) in tun_detach()
513 struct tun_file *tfile, *tmp; in tun_detach_all()
549 struct tun_file *tfile = file->private_data; in tun_attach()
597 static struct tun_struct *__tun_get(struct tun_file *tfile) in __tun_get()
759 struct tun_file *tfile; in tun_net_xmit()
973 struct tun_file *tfile = file->private_data; in tun_chr_poll()
1004 static struct sk_buff *tun_alloc_skb(struct tun_file *tfile, in tun_alloc_skb()
1030 static ssize_t tun_get_user(struct tun_struct *tun, struct tun_file *tfile, in tun_get_user()
1222 struct tun_file *tfile = file->private_data; in tun_chr_write_iter()
1236 struct tun_file *tfile, in tun_put_user()
1347 static ssize_t tun_do_read(struct tun_struct *tun, struct tun_file *tfile, in tun_do_read()
1381 struct tun_file *tfile = file->private_data; in tun_chr_read_iter()
1433 struct tun_file *tfile; in tun_sock_write_space()
1447 tfile = container_of(sk, struct tun_file, sk); in tun_sock_write_space()
1454 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_sendmsg()
1469 struct tun_file *tfile = container_of(sock, struct tun_file, socket); in tun_recvmsg()
1512 .obj_size = sizeof(struct tun_file),
1565 struct tun_file *tfile = file->private_data; in tun_set_iff()
1759 struct tun_file *tfile; in tun_detach_filter()
1772 struct tun_file *tfile; in tun_attach_filter()
1789 struct tun_file *tfile; in tun_set_sndbuf()
1800 struct tun_file *tfile = file->private_data; in tun_set_queue()
1833 struct tun_file *tfile = file->private_data; in __tun_chr_ioctl()
2139 struct tun_file *tfile = file->private_data; in tun_chr_fasync()
2157 struct tun_file *tfile; in tun_chr_open()
2161 tfile = (struct tun_file *)sk_alloc(&init_net, AF_UNSPEC, GFP_KERNEL, in tun_chr_open()
2193 struct tun_file *tfile = file->private_data; in tun_chr_close()
2347 struct tun_file *tfile; in tun_get_socket()