Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Build the next index key chunk.* We return it one word-sized chunk at a time.

Proto:static unsigned long keyring_get_key_chunk(const void *data, int level)

Type:unsigned long

Parameter:

TypeParameterName
const void *data
intlevel
270  index_key = data
271  chunk = 0
273  desc_len = desc_len , n = size of chunk
275  level /= Key data retrieved in chunks of this size
277  Case level == 0
278  Return Hash value
279  Case level == 1
280  Return x
281  Case level == 2
282  Return type
283  Case level == 3
284  Return Domain of operation
285  Default
286  level -= 4
287  If desc_len <= size of First few chars of description Then Return 0
290  d = description + size of First few chars of description
291  d += level * sizeof(long)
292  desc_len -= size of First few chars of description
293  If desc_len > n Then desc_len = n
295  Do
296  chunk <<= 8
297  chunk |= d++
298  When --desc_len > 0 cycle
299  Return chunk
Caller
NameDescribe
keyring_get_object_key_chunk