Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_counter.c Create Date:2022-07-28 16:07:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int page_counter_memparse(const char *buf, const char *max, unsigned long *nr_pages)

Type:int

Parameter:

TypeParameterName
const char *buf
const char *max
unsigned long *nr_pages
254  If Not strcmp(buf, max) Then
255  nr_pages = PAGE_COUNTER_MAX
256  Return 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  If end != '\0' Then Return -EINVAL
263  nr_pages = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(bytes / PAGE_SIZE, (u64)PAGE_COUNTER_MAX)
265  Return 0
Caller
NameDescribe
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