Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_prog_offload_info_fill

Proto:int bpf_prog_offload_info_fill(struct bpf_prog_info *info, struct bpf_prog *prog)

Type:int

Parameter:

TypeParameterName
struct bpf_prog_info *info
struct bpf_prog *prog
297  struct ns_get_path_bpf_prog_args args = {prog = prog, info = info, }
301  aux = Auxiliary fields
304  __user * uinsns
308  res = ns_get_path_cb( & ns_path, bpf_prog_offload_info_fill_ns, & args)
309  If IS_ERR(res) Then
310  If Not ifindex Then Return -ENODEV
312  Return PTR_ERR(res)
315  lock for reading
317  If Not offload Then
318  lease a read lock
319  Return -ENODEV
322  ulen = jited_prog_len
323  jited_prog_len = jited_len
324  If jited_prog_len && ulen Then
325  uinsns = u64_to_user_ptr(jited_prog_insns)
326  ulen = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, jited_prog_len, ulen)
327  If copy_to_user(uinsns, jited_image, ulen) Then
329  Return -EFAULT
333  lease a read lock
335  ns_inode = Where the name belongs to - NULL is * negative
336  alignment pad = new_encode_dev(s_dev)
337  netns_ino = Stat data, not accessed from path walking
338  path_put( & ns_path)
340  Return 0
Caller
NameDescribe
bpf_prog_get_info_by_fd