Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:____bpf_current_task_under_cgroup

Proto:static inline __attribute__((__always_inline__)) u64 ____bpf_current_task_under_cgroup(struct bpf_map *map, u32 idx)

Type:u64

Parameter:

TypeParameterName
struct bpf_map *map
u32idx
681  array = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(map, structbpf_array, map)
684  If Value for the false possibility is greater at compile time(idx >= max_entries) Then Return -E2BIG
687  cgrp = READ_ONCE(ptrs[idx])
688  If Value for the false possibility is greater at compile time(!cgrp) Then Return -EAGAIN
691  Return ask_under_cgroup_hierarchy - test task's membership of cgroup ancestry*@task: the task to be tested*@ancestor: possible ancestor of @task's cgroup* Tests whether @task's default cgroup hierarchy is a descendant of @ancestor