函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\futex.c Create Date:2022-07-27 11:55:36
Last Modify:2020-03-17 15:28:32 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:futex_init

函数原型:static int __init futex_init(void)

返回类型:int

参数:

4163  futex_hashsize等于undup_pow_of_two - round the given value up to nearest power of two*@n: parameter* round the given value up to the nearest power of two* - the result is undefined when n == 0* - this can be used to initialise global variables from constant data(256 * num_possible_cpus())
4166  futex_queues等于allocate a large system hash table from bootmem* - it is assumed that the hash table must contain an exact power-of-2* quantity of entries* - limit is the number of hash buckets, not the total allocation size
4171  futex_hashsize等于1UL左移futex_shift
4173  futex_detect_cmpxchg()
4175 i小于futex_hashsize循环
4176  atomic_set( & (queues)[i].waiters, 0)
4177  动态链表初始化
4178  spin_lock_init( & (queues)[i].lock)
4181  返回:0