函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:mem_cgroup_sk_alloc

函数原型:void mem_cgroup_sk_alloc(struct sock *sk)

返回类型:void

参数:

类型参数名称
struct sock *sk
6683  如果非mem_cgroup_sockets_enabled则返回
6695  如果sk_memcg
6696  获取指定CSS参考
6697  返回
6700  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
6701  memcg等于mem_cgroup_from_task(当前进程)
6702  如果memcg恒等于root_mem_cgroup则转到:out
6704  如果非cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys)且非 Legacy tcp memory accounting 则转到:out
6706  如果ss_tryget_online - try to obtain a reference on the specified css if online*@css: target css* Obtain a reference on @css if it's onlinesk_memcg等于memcg
6708  out :
6709  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()