Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cgroup_bpf_prog_attach

Proto:int cgroup_bpf_prog_attach(const union bpf_attr *attr, enum bpf_prog_type ptype, struct bpf_prog *prog)

Type:int

Parameter:

TypeParameterName
const union bpf_attr *attr
enum bpf_prog_typeptype
struct bpf_prog *prog
552  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
553  If IS_ERR(cgrp) Then Return PTR_ERR(cgrp)
556  ret = sock->sk_cgrp_data handling. For more info, see sock_cgroup_data* definition in cgroup-defs.h.
558  cgroup_put(cgrp)
559  Return ret
Caller
NameDescribe
bpf_prog_attach