Home
last modified time | relevance | path

Searched refs:arr (Results 1 – 4 of 4) sorted by relevance

/kernel/
Dparams.c464 const struct kparam_array *arr = kp->arr; in param_array_set() local
467 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
468 arr->elemsize, arr->ops->set, kp->level, in param_array_set()
469 arr->num ?: &temp_num); in param_array_set()
475 const struct kparam_array *arr = kp->arr; in param_array_get() local
478 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
482 p.arg = arr->elem + arr->elemsize * i; in param_array_get()
484 ret = arr->ops->get(buffer + off, &p); in param_array_get()
496 const struct kparam_array *arr = arg; in param_array_free() local
498 if (arr->ops->free) in param_array_free()
[all …]
/kernel/module/
Dmain.c303 static const struct symsearch arr[] = { in find_symbol() local
315 for (i = 0; i < ARRAY_SIZE(arr); i++) in find_symbol()
316 if (find_exported_symbol_in_section(&arr[i], NULL, fsa)) in find_symbol()
321 struct symsearch arr[] = { in find_symbol() local
332 for (i = 0; i < ARRAY_SIZE(arr); i++) in find_symbol()
333 if (find_exported_symbol_in_section(&arr[i], mod, fsa)) in find_symbol()
1269 } arr[] = { in verify_exported_symbols() local
1274 for (i = 0; i < ARRAY_SIZE(arr); i++) { in verify_exported_symbols()
1275 for (s = arr[i].sym; s < arr[i].sym + arr[i].num; s++) { in verify_exported_symbols()
/kernel/bpf/
Darraymap.c309 static void check_and_free_fields(struct bpf_array *arr, void *val) in check_and_free_fields() argument
311 if (map_value_has_timer(&arr->map)) in check_and_free_fields()
312 bpf_timer_cancel_and_free(val + arr->map.timer_off); in check_and_free_fields()
313 if (map_value_has_kptrs(&arr->map)) in check_and_free_fields()
314 bpf_map_free_kptrs(&arr->map, val); in check_and_free_fields()
Dverifier.c1040 static void *realloc_array(void *arr, size_t old_n, size_t new_n, size_t size) in realloc_array() argument
1049 new_arr = krealloc(arr, alloc_size, GFP_KERNEL); in realloc_array()
1051 kfree(arr); in realloc_array()
1054 arr = new_arr; in realloc_array()
1057 memset(arr + old_n * size, 0, (new_n - old_n) * size); in realloc_array()
1060 return arr ? arr : ZERO_SIZE_PTR; in realloc_array()