Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sysctl_binary.c Create Date:2022-07-28 09:12:13
Last Modify:2020-03-17 13:22:06 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static void warn_on_bintable(const int *name, int nlen)

Type:void

Parameter:

TypeParameterName
const int *name
intnlen
68  hash = FNV32_OFFSET
70  When i < nlen cycle hash = (hash ^ name[i]) * FNV32_PRIME
72  hash %= WARN_ONCE_HASH_SIZE
73  If __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. Then Return
75  deprecated_sysctl_warning(name, nlen)
Caller
NameDescribe
do_sysctl