Function report |
Source Code:mm\memcontrol.c |
Create Date:2022-07-28 16:11:28 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:The user of this function is...* RES_LIMIT.
Proto:static ssize_t mem_cgroup_write(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 |
3500 | memcg = mem_cgroup_from_css(of_css(of)) |
3510 | Case MEMFILE_ATTR(private) == RES_LIMIT |
3511 | If mem_cgroup_is_root(memcg) Then |
3513 | Break |
3516 | Case MEMFILE_TYPE(private) == _MEM |
3517 | ret = mem_cgroup_resize_max(memcg, nr_pages, false) |
3518 | Break |
3519 | Case MEMFILE_TYPE(private) == _MEMSWAP |
3520 | ret = mem_cgroup_resize_max(memcg, nr_pages, true) |
3521 | Break |
3522 | Case MEMFILE_TYPE(private) == _KMEM |
3523 | pr_warn_once("kmem.limit_in_bytes is deprecated and will be removed. Please report your usecase to linux-mm@kvack.org if you depend on this functionality.\n") |
3526 | ret = memcg_update_kmem_max(memcg, nr_pages) |
3527 | Break |
3528 | Case MEMFILE_TYPE(private) == _TCP |
3529 | ret = memcg_update_tcp_max(memcg, nr_pages) |
3530 | Break |
3532 | Break |
3533 | Case MEMFILE_ATTR(private) == RES_SOFT_LIMIT |
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 |