函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:____bpf_current_task_under_cgroup

函数原型:static inline __attribute__((__always_inline__)) u64 ____bpf_current_task_under_cgroup(struct bpf_map *map, u32 idx)

返回类型:u64

参数:

类型参数名称
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  如果此条件成立可能性小(为编译器优化)(idx >= max_entries)则返回:负E2BIG
687  cgrp等于READ_ONCE(ptrs[idx])
688  如果此条件成立可能性小(为编译器优化)(!cgrp)则返回:负EAGAIN
691  返回: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