Home
last modified time | relevance | path

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

/net/
Dsocket.c414 struct file *newfile; in sock_map_fd() local
421 newfile = sock_alloc_file(sock, flags, NULL); in sock_map_fd()
422 if (!IS_ERR(newfile)) { in sock_map_fd()
423 fd_install(fd, newfile); in sock_map_fd()
428 return PTR_ERR(newfile); in sock_map_fd()
1710 struct file *newfile; in __sys_accept4() local
1744 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in __sys_accept4()
1745 if (IS_ERR(newfile)) { in __sys_accept4()
1746 err = PTR_ERR(newfile); in __sys_accept4()
1774 fd_install(newfd, newfile); in __sys_accept4()
[all …]
/net/sctp/
Dsocket.c5687 struct file **newfile, unsigned flags) in sctp_getsockopt_peeloff_common() argument
5703 *newfile = sock_alloc_file(newsock, 0, NULL); in sctp_getsockopt_peeloff_common()
5704 if (IS_ERR(*newfile)) { in sctp_getsockopt_peeloff_common()
5706 retval = PTR_ERR(*newfile); in sctp_getsockopt_peeloff_common()
5707 *newfile = NULL; in sctp_getsockopt_peeloff_common()
5717 (*newfile)->f_flags |= O_NONBLOCK; in sctp_getsockopt_peeloff_common()
5725 struct file *newfile = NULL; in sctp_getsockopt_peeloff() local
5734 retval = sctp_getsockopt_peeloff_common(sk, &peeloff, &newfile, 0); in sctp_getsockopt_peeloff()
5740 fput(newfile); in sctp_getsockopt_peeloff()
5746 fput(newfile); in sctp_getsockopt_peeloff()
[all …]