函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\local_storage.c Create Date:2022-07-27 14:31:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bpf_cgroup_storage_link

函数原型:void bpf_cgroup_storage_link(struct bpf_cgroup_storage *storage, struct cgroup *cgroup, enum bpf_attach_type type)

返回类型:void

参数:

类型参数名称
struct bpf_cgroup_storage *storage
struct cgroup *cgroup
enum bpf_attach_typetype
568  如果非storage则返回
571  program attach type 等于type
572  cgroup inode id 等于Inline functions.
574  map等于map
576  spin_lock_bh( & lock)
577  WARN_ON(cgroup_storage_insert(map, storage))
578  添加链表项
579  spin_unlock_bh( & lock)
调用者
名称描述
__cgroup_bpf_attach__cgroup_bpf_attach() - Attach the program to a cgroup, and* propagate the change to descendants*@cgrp: The cgroup which descendants to traverse*@prog: A program to attach*@type: Type of attach operation*@flags: Option flags