函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:nr_overcommit_hugepages_store

函数原型:static ssize_t nr_overcommit_hugepages_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count)

返回类型:ssize_t

参数:

类型参数名称
struct kobject *kobj
struct kobj_attribute *attr
const char *buf
size_tcount
2571  h等于kobj_to_hstate(kobj, NULL)
2573  如果hstate_is_gigantic(h)则返回:负EINVAL
2576  err等于kstrtoul - convert a string to an unsigned long*@s: The start of the string. The string must be null-terminated, and may also* include a single newline before its terminating null. The first character* may also be a plus sign, but not a minus sign.
2577  如果err则返回:err
2580  加自旋锁
2581  nr_overcommit_huge_pages等于input
2582  自旋锁解锁
2584  返回:count