Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 9 of 9) sorted by relevance

/samples/bpf/
A Dxdp_fwd_user.c32 static int do_attach(int idx, int prog_fd, int map_fd, const char *name) in do_attach() argument
36 err = bpf_xdp_attach(idx, prog_fd, xdp_flags, NULL); in do_attach()
43 err = bpf_map_update_elem(map_fd, &idx, &idx, 0); in do_attach()
128 int opt, i, idx, err; in main() local
206 idx = if_nametoindex(argv[i]); in main()
207 if (!idx) in main()
208 idx = strtoul(argv[i], NULL, 0); in main()
210 if (!idx) { in main()
215 err = do_detach(idx, argv[i], prog_name); in main()
219 err = do_attach(idx, prog_fd, map_fd, argv[i]); in main()
A Dxdp_sample.bpf.c71 u32 idx; in xdp_redirect_collect_stat() local
78 idx = key * nr_cpus + cpu; in xdp_redirect_collect_stat()
79 rec = bpf_map_lookup_elem(&redir_err_cnt, &idx); in xdp_redirect_collect_stat()
133 u32 idx; in BPF_PROG() local
138 idx = to_cpu * nr_cpus + cpu; in BPF_PROG()
186 u32 key = act, idx; in BPF_PROG() local
196 idx = key * nr_cpus + cpu; in BPF_PROG()
197 rec = bpf_map_lookup_elem(&exception_cnt, &idx); in BPF_PROG()
243 u64 idx; in BPF_PROG() local
247 idx = idx_in; in BPF_PROG()
[all …]
/samples/vfs/
A Dtest-list-all-mounts.c151 for (size_t idx = 0; idx < stmnt->mnt_uidmap_num; idx++) { in main() local
152 printf("mnt_uidmap[%zu]:\t%s\n", idx, idmap); in main()
160 for (size_t idx = 0; idx < stmnt->mnt_gidmap_num; idx++) { in main() local
161 printf("mnt_gidmap[%zu]:\t%s\n", idx, idmap); in main()
/samples/seccomp/
A Dbpf-helper.h66 #define LO_ARG(idx) offsetof(struct seccomp_data, args[(idx)]) argument
68 #define LO_ARG(idx) offsetof(struct seccomp_data, args[(idx)]) + sizeof(__u32) argument
90 #define HI_ARG(idx) offsetof(struct seccomp_data, args[(idx)]) + sizeof(__u32) argument
93 #define HI_ARG(idx) offsetof(struct seccomp_data, args[(idx)]) argument
139 #define ARG_32(idx) \ argument
140 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, LO_ARG(idx))
143 #define ARG_64(idx) \ argument
144 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, LO_ARG(idx)), \
146 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, HI_ARG(idx)), \
/samples/connector/
A Dcn_test.c28 __func__, jiffies, msg->id.idx, msg->id.val, in cn_test_callback()
69 msg->id.idx = -1;
87 req->first = cn_test_id.idx;
162 cn_test_id.idx, cn_test_id.val); in cn_test_init()
A Ducon.c66 __func__, msg->id.idx, msg->id.val, msg->len, msg->seq, msg->ack); in netlink_send()
170 data->id.idx = CN_TEST_IDX; in main()
181 ulog("%d messages have been sent to %08x.%08x.\n", i, data->id.idx, data->id.val); in main()
226 ctime(&tm), data->id.idx, data->id.val, data->seq, data->ack); in main()
/samples/rust/
A Drust_driver_platform.rs129 if let Ok(idx) = in properties_parse()
132 dev_info!(dev, "matched compatible string idx = {}\n", idx); in properties_parse()
/samples/pktgen/
A Dfunctions.sh292 idx=$[ octet*i ]
/samples/vfio-mdev/
A Dmtty.c56 #define CIRCULAR_BUF_INC_IDX(idx) (idx = (idx + 1) & (MAX_FIFO_SIZE - 1)) argument

Completed in 16 milliseconds