Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:setup_transparent_hugepage

Proto:static int __init setup_transparent_hugepage(char *str)

Type:int

Parameter:

TypeParameterName
char *str
455  ret = 0
456  If Not str Then Go to out
458  If Not strcmp(str, "always") Then
459  Atomically set a bit in memory
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  Else if Not strcmp(str, "madvise") Then
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  Atomically set a bit in memory
469  ret = 1
470  Else if Not strcmp(str, "never") Then
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  If Not ret Then pr_warn("transparent_hugepage= cannot parse, ignored\n")
480  Return ret