Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\futex.c Create Date:2022-07-28 10:55:22
Last Modify:2020-03-17 15:28:32 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:futex_init

Proto:static int __init futex_init(void)

Type:int

Parameter:Nothing

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  When i < futex_hashsize cycle
4176  atomic_set( & (queues)[i].waiters, 0)
4177  plist_head_init - dynamic struct plist_head initializer*@head: &struct plist_head pointer
4178  Process spin lock initialization( & (queues)[i].lock)
4181  Return 0