Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:11:31 |
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_reset
Proto:static ssize_t mem_cgroup_reset(struct kernfs_open_file *of, char *buf, size_t nbytes, loff_t off)
Type:ssize_t
Parameter:
Type | Parameter | Name |
---|---|---|
struct kernfs_open_file * | of | |
char * | buf | |
size_t | nbytes | |
loff_t | off |
3544 | memcg = mem_cgroup_from_css(of_css(of)) |
3548 | Case MEMFILE_TYPE(private) == _MEM |
3549 | counter = Accounted resources |
3550 | Break |
3551 | Case MEMFILE_TYPE(private) == _MEMSWAP |
3553 | Break |
3554 | Case MEMFILE_TYPE(private) == _KMEM |
3557 | Case MEMFILE_TYPE(private) == _TCP |
3560 | Default |
3561 | BUG() |
3565 | Case MEMFILE_ATTR(private) == RES_MAX_USAGE |
3567 | Break |
3568 | Case MEMFILE_ATTR(private) == RES_FAILCNT |
3569 | failcnt = 0 |
3570 | Break |
3571 | Default |
3572 | BUG() |
3575 | Return nbytes |
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 |