函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:page_counter_memparse - memparse() for page counter limits*@buf: string to parse*@max: string meaning maximum possible value*@nr_pages: returns the result in number of pages* Returns -EINVAL, or 0 and @nr_pages on success. @nr_pages will be

函数原型:int page_counter_memparse(const char *buf, const char *max, unsigned long *nr_pages)

返回类型:int

参数:

类型参数名称
const char *buf
const char *max
unsigned long *nr_pages
254  如果非字符串比较
255  nr_pages等于PAGE_COUNTER_MAX
256  返回:0
259  bytes等于memparse - parse a string with mem suffixes into a number*@ptr: Where parse begins*@retptr: (output) Optional pointer to next char after parse completes* Parses a string into a number. The number stored at @ptr is
260  如果end不等于'\0'则返回:负EINVAL
263  nr_pages等于两数取小(bytes / PAGE_SIZE, (u64)PAGE_COUNTER_MAX)
265  返回:0
调用者
名称描述
mem_cgroup_writeThe user of this function is...* RES_LIMIT.
__mem_cgroup_usage_register_event
memory_min_write
memory_low_write
memory_high_write
memory_max_write
swap_max_write
hugetlb_cgroup_write