Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__should_failslab

Proto:bool __should_failslab(struct kmem_cache *s, gfp_t gfpflags)

Type:bool

Parameter:

TypeParameterName
struct kmem_cache *s
gfp_tgfpflags
20  If Value for the false possibility is greater at compile time(s == kmem_cache) Then Return false
23  If gfpflags & __GFP_NOFAIL Then Return false
26  If ignore_gfp_reclaim && gfpflags & Caller can reclaim Then Return false
30  If cache_filter && Not (Used for retrieving partial slabs, etc. & Fault injection mark ) Then Return false
33  Return This code is stolen from failmalloc-1.0* http://www.nongnu.org/failmalloc/