函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sysctl_binary.c Create Date:2022-07-27 10:12:05
Last Modify:2020-03-17 13:22:06 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Print each legacy sysctl (approximately) only once.* To avoid making the tables non-const use a external* hash-table instead.* Worst case hash collision: 6, but very rarely.* NOTE! We don't use the SMP-safe bit tests. We simply* don't care enough.

函数原型:static void warn_on_bintable(const int *name, int nlen)

返回类型:void

参数:

类型参数名称
const int *name
intnlen
68  hash等于FNV32_OFFSET
70 i小于nlen循环hash等于hash按位异或name[i]的值乘FNV32_PRIME
72  hash取模等于WARN_ONCE_HASH_SIZE
73  如果__test_and_set_bit - Set a bit and return its old value*@nr: Bit to set*@addr: Address to count from* This operation is non-atomic. If two instances of this operation race, one* can appear to succeed but actually fail.则返回
75  deprecated_sysctl_warning(name, nlen)
调用者
名称描述
do_sysctl