函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:crc_t10dif_rehash

函数原型:static int crc_t10dif_rehash(struct notifier_block *self, unsigned long val, void *data)

返回类型:int

参数:

类型参数名称
struct notifier_block *self
unsigned longval
void *data
25  alg等于data
28  如果val不等于CRYPTO_MSG_ALG_LOADEDstatic_key_false( & crct10dif_fallback)或字符串指定长度比较则返回:0
33  mutex_lock( & crc_t10dif_mutex)
34  old等于cu_dereference_protected() - fetch RCU pointer when updates prevented*@p: The pointer to read, prior to dereferencing*@c: The conditions under which the dereference will take place* Return the value of the specified RCU-protected pointer, but omit(crct10dif_tfm, lockdep_is_held( & crc_t10dif_mutex))
36  如果非old
37  mutex_unlock( & crc_t10dif_mutex)
38  返回:0
40  new等于crypto_alloc_shash("crct10dif", 0, 0)
41  如果是错误
42  mutex_unlock( & crc_t10dif_mutex)
43  返回:0
45  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(crct10dif_tfm, new)
46  mutex_unlock( & crc_t10dif_mutex)
48  synchronize_rcu()
49  归零并释放信息消化处理
50  返回:0