函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:setup_transparent_hugepage

函数原型:static int __init setup_transparent_hugepage(char *str)

返回类型:int

参数:

类型参数名称
char *str
455  ret等于0
456  如果非str则转到:out
458  如果非字符串比较
459  设置内存位
461  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
463  ret等于1
464  否则如果非字符串比较
465  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
467  设置内存位
469  ret等于1
470  否则如果非字符串比较
471  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
473  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
475  ret等于1
477  out :
478  如果非ret打印警告信息("transparent_hugepage= cannot parse, ignored\n")
480  返回:ret