Home
last modified time | relevance | path

Searched refs:SO_PRIORITY (Results 1 – 8 of 8) sorted by relevance

/tools/testing/selftests/bpf/
Dbpf_sockopt_helpers.h15 if (bpf_getsockopt(ctx, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in get_set_sk_priority()
17 if (bpf_setsockopt(ctx, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in get_set_sk_priority()
/tools/testing/selftests/bpf/progs/
Dlsm_cgroup.c66 if (bpf_setsockopt(sk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in real_create()
71 if (bpf_getsockopt(sk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in real_create()
175 if (bpf_setsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in BPF_PROG()
180 if (bpf_getsockopt(newsk, SOL_SOCKET, SO_PRIORITY, &prio, sizeof(prio))) in BPF_PROG()
Dbpf_tracing_net.h13 #define SO_PRIORITY 12 macro
Dbind4_prog.c146 if (misc_opts(ctx, SO_MARK) || misc_opts(ctx, SO_PRIORITY)) in bind_v4_prog()
Dbind6_prog.c160 if (misc_opts(ctx, SO_MARK) || misc_opts(ctx, SO_PRIORITY)) in bind_v6_prog()
Dsetget_sockopt.c45 { .opt = SO_PRIORITY, .new = 0xeb9f, .expected = 0xeb9f, },
/tools/testing/selftests/bpf/prog_tests/
Dlsm_cgroup.c193 ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional()
229 ASSERT_GE(getsockopt(accepted_fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional()
284 ASSERT_GE(getsockopt(fd, SOL_SOCKET, SO_PRIORITY, &prio, &socklen), 0, in test_lsm_cgroup_functional()
/tools/include/uapi/asm-generic/
Dsocket.h24 #define SO_PRIORITY 12 macro