Home
last modified time | relevance | path

Searched refs:newfile (Results 1 – 2 of 2) sorted by relevance

/net/
Dsocket.c429 struct file *newfile; in sock_map_fd() local
436 newfile = sock_alloc_file(sock, flags, NULL); in sock_map_fd()
437 if (!IS_ERR(newfile)) { in sock_map_fd()
438 fd_install(fd, newfile); in sock_map_fd()
443 return PTR_ERR(newfile); in sock_map_fd()
1716 struct file *newfile; in do_accept() local
1737 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in do_accept()
1738 if (IS_ERR(newfile)) in do_accept()
1739 return newfile; in do_accept()
1764 return newfile; in do_accept()
[all …]
/net/sctp/
Dsocket.c5555 struct file **newfile, unsigned flags) in sctp_getsockopt_peeloff_common() argument
5571 *newfile = sock_alloc_file(newsock, 0, NULL); in sctp_getsockopt_peeloff_common()
5572 if (IS_ERR(*newfile)) { in sctp_getsockopt_peeloff_common()
5574 retval = PTR_ERR(*newfile); in sctp_getsockopt_peeloff_common()
5575 *newfile = NULL; in sctp_getsockopt_peeloff_common()
5585 (*newfile)->f_flags |= O_NONBLOCK; in sctp_getsockopt_peeloff_common()
5593 struct file *newfile = NULL; in sctp_getsockopt_peeloff() local
5602 retval = sctp_getsockopt_peeloff_common(sk, &peeloff, &newfile, 0); in sctp_getsockopt_peeloff()
5608 fput(newfile); in sctp_getsockopt_peeloff()
5614 fput(newfile); in sctp_getsockopt_peeloff()
[all …]