Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_bpf_prog_detach

Proto:int cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype)

Type:int

Parameter:

TypeParameterName
const union bpf_attr *attr
enum bpf_prog_typeptype
568  cgrp = group_get_from_fd - get a cgroup pointer from a fd*@fd: fd obtained by open(cgroup2_dir)* Find the cgroup from a fd which should be obtained* by opening a cgroup directory. Returns a pointer to the* cgroup on success. ERR_PTR is returned if the cgroup
569  If IS_ERR(cgrp) Then Return PTR_ERR(cgrp)
572  prog = bpf_prog_get_type( eBPF program to attach , ptype)
573  If IS_ERR(prog) Then prog = NULL
576  ret = cgroup_bpf_detach(cgrp, prog, attach_type, 0)
577  If prog Then bpf_prog_put(prog)
580  cgroup_put(cgrp)
581  Return ret
Caller
NameDescribe
bpf_prog_detach