Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:14:29 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:mem_cgroup_sk_alloc
Proto:void mem_cgroup_sk_alloc(struct sock *sk)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct sock * | sk |
6683 | If Not mem_cgroup_sockets_enabled Then Return |
6695 | If sk_memcg Then |
6697 | Return |
6701 | memcg = mem_cgroup_from_task(current process) |
6702 | If memcg == root_mem_cgroup Then Go to out |
6704 | If Not cgroup_subsys_on_dfl - fast test on whether a subsys is on default hierarchy*@ss: subsystem in question(memory_cgrp_subsys) && Not Legacy tcp memory accounting Then Go to out |
6706 | If 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 online Then sk_memcg = memcg |
6708 | out : |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |