/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | test_probe_user.c | 10 static int handle_sys_connect_common(struct sockaddr_in *uservaddr) in handle_sys_connect_common() argument 14 bpf_probe_read_user(&old, sizeof(old), uservaddr); in handle_sys_connect_common() 16 bpf_probe_write_user(uservaddr, &new, sizeof(new)); in handle_sys_connect_common() 22 int BPF_KSYSCALL(handle_sys_connect, int fd, struct sockaddr_in *uservaddr, in BPF_KSYSCALL() argument 25 return handle_sys_connect_common(uservaddr); in BPF_KSYSCALL() 37 struct sockaddr_in *uservaddr; in BPF_KSYSCALL() local 39 bpf_probe_read_user(&uservaddr, sizeof(uservaddr), &args[1]); in BPF_KSYSCALL() 40 return handle_sys_connect_common(uservaddr); in BPF_KSYSCALL()
|
/linux-6.6.21/samples/bpf/ |
D | test_probe_write_user.bpf.c | 30 int BPF_KSYSCALL(bpf_prog1, int fd, struct sockaddr_in *uservaddr, in BPF_KSYSCALL() argument 39 if (bpf_probe_read_user(&orig_addr, sizeof(orig_addr), uservaddr) != 0) in BPF_KSYSCALL() 45 bpf_probe_write_user(uservaddr, &new_addr, in BPF_KSYSCALL()
|
D | map_perf_test.bpf.c | 172 int BPF_KSYSCALL(stress_lru_hmap_alloc, int fd, struct sockaddr_in *uservaddr, in BPF_KSYSCALL() argument 187 struct sockaddr_in6 *in6 = (struct sockaddr_in6 *)uservaddr; in BPF_KSYSCALL()
|
/linux-6.6.21/drivers/net/ppp/ |
D | pptp.c | 381 static int pptp_bind(struct socket *sock, struct sockaddr *uservaddr, in pptp_bind() argument 385 struct sockaddr_pppox *sp = (struct sockaddr_pppox *) uservaddr; in pptp_bind() 414 static int pptp_connect(struct socket *sock, struct sockaddr *uservaddr, in pptp_connect() argument 418 struct sockaddr_pppox *sp = (struct sockaddr_pppox *) uservaddr; in pptp_connect()
|
D | pppoe.c | 609 static int pppoe_connect(struct socket *sock, struct sockaddr *uservaddr, in pppoe_connect() argument 613 struct sockaddr_pppox *sp = (struct sockaddr_pppox *)uservaddr; in pppoe_connect()
|
/linux-6.6.21/include/linux/ |
D | socket.h | 453 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr,
|
/linux-6.6.21/tools/perf/trace/beauty/include/linux/ |
D | socket.h | 452 extern int __sys_connect(int fd, struct sockaddr __user *uservaddr,
|
/linux-6.6.21/net/l2tp/ |
D | l2tp_ppp.c | 714 static int pppol2tp_connect(struct socket *sock, struct sockaddr *uservaddr, in pppol2tp_connect() argument 729 error = pppol2tp_sockaddr_get_info(uservaddr, sockaddr_len, &info); in pppol2tp_connect()
|
/linux-6.6.21/net/ |
D | socket.c | 2058 int __sys_connect(int fd, struct sockaddr __user *uservaddr, int addrlen) in __sys_connect() argument 2067 ret = move_addr_to_kernel(uservaddr, addrlen, &address); in __sys_connect() 2076 SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr, in SYSCALL_DEFINE3() argument 2079 return __sys_connect(fd, uservaddr, addrlen); in SYSCALL_DEFINE3()
|