函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:queue_futex() - Requeue a futex_q from one hb to another*@q: the futex_q to requeue*@hb1: the source hash_bucket*@hb2: the target hash_bucket*@key2: the new key for the requeued futex_q

函数原型:static inline void requeue_futex(struct futex_q *q, struct futex_hash_bucket *hb1, struct futex_hash_bucket *hb2, union futex_key *key2)

返回类型:void

参数:

类型参数名称
struct futex_q *q
struct futex_hash_bucket *hb1
struct futex_hash_bucket *hb2
union futex_key *key2
1864  如果此条件成立可能性大(为编译器优化)( & chain != & chain)则
1865  从plist移除节点
1866  Reflects a waiter being removed from the waitqueue by wakeup* paths.
1867  Reflects a new waiter being added to the waitqueue.
1868  添加节点到头上
1869  lock_ptr等于lock
1871  Take a reference to the resource addressed by a key.* Can be called while holding spinlocks.
1872  key等于key2
调用者
名称描述
futex_requeueex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc