Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\bpf\devmap.c Create Date:2022-07-28 13:21:49
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:dev_map_create_hash

Proto:static struct hlist_head *dev_map_create_hash(unsigned int entries)

Type:struct hlist_head

Parameter:

TypeParameterName
unsigned intentries
96  hash = kmalloc_array - allocate memory for an array.*@n: number of elements.*@size: element size.*@flags: the type of memory to allocate (see kmalloc).
97  If (hash != NULL) Then When i < entries cycle
99  INIT_HLIST_HEAD( & hash[i])
101  Return hash
Caller
NameDescribe
dev_map_init_map