Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\core.c Create Date:2022-07-28 12:50:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bpf_prog_array_copy_info

Proto:int bpf_prog_array_copy_info(struct bpf_prog_array *array, u32 *prog_ids, u32 request_cnt, u32 *prog_cnt)

Type:int

Parameter:

TypeParameterName
struct bpf_prog_array *array
u32 *prog_ids
u32request_cnt
u32 *prog_cnt
2023  cnt = 0
2025  If array Then cnt = bpf_prog_array_length(array)
2028  prog_cnt = cnt
2031  If Not request_cnt || Not cnt Then Return 0
2035  Return If bpf_prog_array_copy_core(array, prog_ids, request_cnt) Then -ENOSPC Else 0