函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:hugetlb_overcommit_handler

函数原型:int hugetlb_overcommit_handler(struct ctl_table *table, int write, void __user *buffer, size_t *length, loff_t *ppos)

返回类型:int

参数:

类型参数名称
struct ctl_table *table
intwrite
void __user *buffer
size_t *length
loff_t *ppos
3011  h等于default_hstate
3015  如果非hugepages_supported()则返回:负EOPNOTSUPP
3018  tmp等于nr_overcommit_huge_pages
3020  如果writehstate_is_gigantic(h)则返回:负EINVAL
3023  data等于tmp
3024  maxlen等于sizeof(unsignedlong)
3025  ret等于指定大小读sysctl长整数向量
3026  如果ret则转到:out
3029  如果write
3030  加自旋锁
3031  nr_overcommit_huge_pages等于tmp
3032  自旋锁解锁
3034  out :
3035  返回:ret