Searched refs:ncopy (Results 1 – 2 of 2) sorted by relevance
/Linux-v6.6/tools/testing/selftests/bpf/prog_tests/ |
D | obj_name.c | 26 size_t ncopy; in test_obj_name() local 30 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name() 37 memcpy(attr.prog_name, tests[i].name, ncopy); in test_obj_name() 51 ncopy = name_len < sizeof(attr.map_name) ? in test_obj_name() 59 memcpy(attr.map_name, tests[i].name, ncopy); in test_obj_name()
|
/Linux-v6.6/kernel/bpf/ |
D | verifier.c | 15124 u32 i, s, nr_linfo, ncopy, expected_size, rec_size, prev_offset = 0; in check_btf_line() local 15159 ncopy = min_t(u32, expected_size, rec_size); in check_btf_line() 15173 if (copy_from_bpfptr(&linfo[i], ulinfo, ncopy)) { in check_btf_line() 15252 u32 i, nr_core_relo, ncopy, expected_size, rec_size; in check_core_relo() local 15277 ncopy = min_t(u32, expected_size, rec_size); in check_core_relo() 15296 if (copy_from_bpfptr(&core_relo, u_core_relo, ncopy)) { in check_core_relo()
|