Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bpf_cgroup_storage_link

Proto:void bpf_cgroup_storage_link(struct bpf_cgroup_storage *storage, struct cgroup *cgroup, enum bpf_attach_type type)

Type:void

Parameter:

TypeParameterName
struct bpf_cgroup_storage *storage
struct cgroup *cgroup
enum bpf_attach_typetype
568  If Not storage Then Return
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  list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks.
579  spin_unlock_bh( & lock)
Caller
NameDescribe
__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