Searched refs:socket (Results 126 - 150 of 881) sorted by relevance

1234567891011>>

/linux-master/security/landlock/
H A Dnet.c11 #include <linux/socket.h>
64 static int current_check_access_socket(struct socket *const sock,
82 /* Checks if it's a (potential) TCP socket. */
115 * connection while retaining the socket object (i.e., the file
175 static int hook_socket_bind(struct socket *const sock,
182 static int hook_socket_connect(struct socket *const sock,
/linux-master/drivers/usb/usbip/
H A Dvhci_sysfs.c29 * Output includes socket fd instead of socket pointer address to avoid
32 * The socket pointer address is not used at the moment and it was made
33 * visible as a convenient way to find IP address from socket pointer
299 * connection and then write its socket descriptor with remote device
311 struct socket *socket; local
325 * @sockfd: socket descriptor of an established TCP connection
359 /* Extract socket from fd. */
360 socket
[all...]
H A Dstub_dev.c38 * usbip_sockfd gets a socket descriptor of an established TCP connection that
47 struct socket *socket; local
74 socket = sockfd_lookup(sockfd, &err);
75 if (!socket) {
80 if (socket->type != SOCK_STREAM) {
82 socket->type);
90 sockfd_put(socket);
96 sockfd_put(socket);
106 sdev->ud.tcp_socket = socket;
[all...]
/linux-master/fs/smb/server/
H A Dtransport_tcp.c22 struct socket *ksmbd_socket;
35 struct socket *sock;
49 static inline void ksmbd_tcp_nodelay(struct socket *sock)
54 static inline void ksmbd_tcp_reuseaddr(struct socket *sock)
59 static inline void ksmbd_tcp_rcv_timeout(struct socket *sock, s64 secs)
69 static inline void ksmbd_tcp_snd_timeout(struct socket *sock, s64 secs)
74 static struct tcp_transport *alloc_transport(struct socket *client_sk)
140 * get_conn_iovec() - get connection iovec for reading from socket
176 * @client_sk: socket associated with new connection
183 static int ksmbd_tcp_new_connection(struct socket *client_s
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_udp6.c19 const struct socket *sk_socket = sk->sk_socket;
26 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode;
H A Dbpf_iter_udp4.c12 const struct socket *sk_socket = sk->sk_socket;
19 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode;
/linux-master/include/xen/interface/io/
H A Dpvcalls.h10 /* "1" means socket, connect, release, bind, listen, accept and poll */
48 } socket; member in union:xen_pvcalls_request::__anon189
95 } socket; member in union:xen_pvcalls_response::__anon190
/linux-master/include/uapi/linux/
H A Dmptcp.h7 #include <sys/socket.h> /* for struct sockaddr */
14 #include <linux/socket.h> /* for sockaddr_storage and sa_family */
118 /* MPTCP socket options */
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dbind_perm.c6 #include <sys/socket.h>
27 fd = socket(family, SOCK_STREAM, 0);
28 if (!ASSERT_GE(fd, 0, "socket"))
H A Ddecap_sanity.c5 #include <sys/socket.h>
58 sockfd = socket(AF_INET6, SOCK_DGRAM, 0);
59 if (!ASSERT_NEQ(sockfd, -1, "socket"))
/linux-master/io_uring/
H A Dnapi.h18 void __io_napi_add(struct io_ring_ctx *ctx, struct socket *sock);
51 * Add the napi id of the socket to the napi busy poll list and hash table.
56 struct socket *sock;
/linux-master/net/tipc/
H A DMakefile11 netlink.o netlink_compat.o node.o socket.o eth_media.o \
/linux-master/tools/perf/tests/shell/lib/
H A Dstat_output.sh140 echo -n "Checking $1 output: per socket "
146 perf stat --per-socket -a $2 true
147 commachecker --per-socket
151 # The perf stat options for per-socket, per-core, per-die
154 # example, socket value is fetched from "physical_package_id"
160 # and set to -1. Check here validates the socket-id read from
/linux-master/tools/testing/selftests/net/
H A Dreuseaddr_conflict.c6 * If we open an ipv4 socket on a port with reuseaddr we shouldn't reset the tb
15 #include <sys/socket.h>
51 if ((fd = socket(family, SOCK_STREAM, IPPROTO_TCP)) < 0) {
52 perror("socket");
94 error(1, errno, "Couldn't open listen socket");
98 error(1, 0, "Was allowed to create an ipv4 reuseport on a already bound non-reuseport socket");
106 error(1, 0, "Was allowed to create an ipv4 reuseport on a already bound non-reuseport socket");
108 fprintf(stderr, "Opening INADDR_ANY:%d after closing ipv6 socket\n", PORT);
111 error(1, 0, "Was allowed to create an ipv4 reuseport on an already bound non-reuseport socket with no ipv6");
/linux-master/kernel/bpf/
H A Dreuseport_array.c240 struct socket *socket; local
259 socket = sockfd_lookup(fd, &err);
260 if (!socket)
263 nsk = socket->sk;
311 fput(socket->file);
/linux-master/net/bluetooth/bnep/
H A Dsock.c37 static int bnep_sock_release(struct socket *sock)
53 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp)
59 struct socket *nsock;
137 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
143 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
198 static int bnep_sock_create(struct net *net, struct socket *sock, int protocol,
235 BT_ERR("Can't register BNEP socket");
246 BT_INFO("BNEP socket layer initialized");
/linux-master/net/rds/
H A Dtcp_listen.c42 void rds_tcp_keepalive(struct socket *sock)
59 * socket and force a reconneect from smaller -> larger ip addr. The reason
98 int rds_tcp_accept_one(struct socket *sock)
100 struct socket *new_sock = NULL;
249 * ->sk_data_ready is also called for a newly established child socket
252 * socket
255 * the listen socket is being torn down.
268 struct socket *rds_tcp_listen_init(struct net *net, bool isv6)
270 struct socket *sock = NULL;
280 rdsdebug("could not create %s listener socket
[all...]
/linux-master/include/linux/
H A Dsecurity.h184 struct socket;
1513 int security_unix_may_send(struct socket *sock, struct socket *other);
1515 int security_socket_post_create(struct socket *sock, int family,
1517 int security_socket_socketpair(struct socket *socka, struct socket *sockb);
1518 int security_socket_bind(struct socket *sock, struct sockaddr *address, int addrlen);
1519 int security_socket_connect(struct socket *sock, struct sockaddr *address, int addrlen);
1520 int security_socket_listen(struct socket *sock, int backlog);
1521 int security_socket_accept(struct socket *soc
[all...]
H A Dlsm_hook_defs.h312 LSM_HOOK(int, 0, unix_may_send, struct socket *sock, struct socket *other)
314 LSM_HOOK(int, 0, socket_post_create, struct socket *sock, int family, int type,
316 LSM_HOOK(int, 0, socket_socketpair, struct socket *socka, struct socket *sockb)
317 LSM_HOOK(int, 0, socket_bind, struct socket *sock, struct sockaddr *address,
319 LSM_HOOK(int, 0, socket_connect, struct socket *sock, struct sockaddr *address,
321 LSM_HOOK(int, 0, socket_listen, struct socket *sock, int backlog)
322 LSM_HOOK(int, 0, socket_accept, struct socket *sock, struct socket *newsoc
[all...]
/linux-master/net/
H A Dsocket.c5 * Version: @(#)socket.c 1.1.93 18/02/95
31 * Linus : Argh. removed all the socket allocation
49 * This module is effectively the top level interface to the BSD socket
58 #include <linux/socket.h>
139 struct socket *sock = f->private_data;
232 * Move socket addresses back and forth across the kernel/user
237 * move_addr_to_kernel - copy a socket address into kernel space
311 init_waitqueue_head(&ei->socket.wq.wait);
312 ei->socket.wq.fasync_list = NULL;
313 ei->socket
[all...]
/linux-master/arch/um/kernel/
H A Dtime.c525 static int time_travel_connect_external(const char *socket) argument
531 if ((sep = strchr(socket, ':'))) {
533 if (sep - socket > sizeof(buf) - 1)
536 memcpy(buf, socket, sep - socket);
540 socket);
544 socket = sep + 1;
547 rc = os_connect_socket(socket);
549 panic("time-travel: failed to connect to external socket %s\n",
550 socket);
[all...]
/linux-master/crypto/
H A Dalgif_hash.c63 static int hash_sendmsg(struct socket *sock, struct msghdr *msg,
179 static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len,
226 static int hash_accept(struct socket *sock, struct socket *newsock, int flags,
298 static int hash_check_key(struct socket *sock)
333 static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg,
345 static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg,
357 static int hash_accept_nokey(struct socket *sock, struct socket *newsock,
/linux-master/net/handshake/
H A Dhandshake-test.c148 struct socket *sock;
186 struct socket *sock;
211 struct socket *sock;
245 struct socket *sock;
282 struct socket *sock;
315 struct socket *sock;
350 struct socket *sock;
392 struct socket *sock;
450 struct socket *sock;
/linux-master/tools/perf/tests/
H A Dtopology.c120 pr_debug("CPU %d, core %d, socket %d\n", i,
125 // Test that CPU ID contains socket, die, core and CPU
135 id.socket);
143 // Test that core ID contains socket, die and core
151 id.socket);
159 // Test that die ID contains socket and die
164 id.socket);
175 // Test that socket ID contains only socket
180 id.socket);
[all...]
/linux-master/net/netfilter/
H A Dnft_socket.c220 const struct nft_socket *socket; local
227 socket = nft_expr_priv(track->regs[priv->dreg].selector);
228 if (priv->key != socket->key ||
229 priv->dreg != socket->dreg ||
230 priv->level != socket->level) {
268 .name = "socket",
290 MODULE_DESCRIPTION("nf_tables socket match module");
291 MODULE_ALIAS_NFT_EXPR("socket");

Completed in 556 milliseconds

1234567891011>>