函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\keyring.c Create Date:2022-07-27 19:52:08
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Compare the index keys of a pair of objects and determine the bit position* at which they differ - if they differ.

函数原型:static int keyring_diff_objects(const void *object, const void *data)

返回类型:int

参数:

类型参数名称
const void *object
const void *data
327  key_a等于keyring_ptr_to_key(object)
328  a等于index_key
329  b等于data
333  level等于0
334  seg_a等于 Hash value
335  seg_b等于 Hash value
336  如果seg_a按位异或seg_b的值不等于0则转到:differ
338  level加等于Key data retrieved in chunks of this size 除8
344  seg_a等于x
345  seg_b等于x
346  如果seg_a按位异或seg_b的值不等于0则转到:differ
348  level加等于sizeof(unsignedlong)
351  seg_a等于type
352  seg_b等于type
353  如果seg_a按位异或seg_b的值不等于0则转到:differ
355  level加等于sizeof(unsignedlong)
357  seg_a等于 Domain of operation
358  seg_b等于 Domain of operation
359  如果seg_a按位异或seg_b的值不等于0则转到:differ
361  level加等于sizeof(unsignedlong)
363  i等于 First few chars of description 的长度
364  如果desc_len小于等于i则转到:same
367 i小于desc_len循环
368  seg_a等于*descriptioni的和
369  seg_b等于*descriptioni的和
370  如果seg_a按位异或seg_b的值不等于0则转到:differ_plus_i
374  same :
375  返回:负1
377  differ_plus_i :
378  level加等于i
379  differ :
380  i等于level乘8加在字中找到第一个指定位
381  返回:i