Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_meminit.c Create Date:2022-07-28 06:37:32
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Fill a buffer with garbage, skipping |skip| first bytes.

Proto:static void __init fill_with_garbage_skip(void *ptr, int size, size_t skip)

Type:void

Parameter:

TypeParameterName
void *ptr
intsize
size_tskip
43  p = ptr + skip
44  i = 0
46  WARN_ON(skip > size)
47  size -= skip
49  When size >= size of p cycle
50  p[i] = GARBAGE_INT
51  i++
52  size -= size of p
54  If size Then memset( & p[i], GARBAGE_BYTE, size)
Caller
NameDescribe
fill_with_garbage
do_kmem_cache_sizeTest kmem_cache with given parameters: