函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__queue_me

函数原型:static inline void __queue_me(struct futex_q *q, struct futex_hash_bucket *hb)

返回类型:void

参数:

类型参数名称
struct futex_q *q
struct futex_hash_bucket *hb
2342  prio等于两数取小(normal_prio, MAX_RT_PRIO)
2344  动态链表初始化
2345  添加节点到头上
2346  task等于当前进程
调用者
名称描述
queue_mequeue_me() - Enqueue the futex_q on the futex_hash_bucket*@q: The futex_q to enqueue*@hb: The destination hash bucket* The hb->lock must be held by the caller, and is released here. A call to
futex_lock_piUserspace tried a 0 -> TID atomic transition of the futex value* and failed. The kernel side here does the whole locking operation:* if there are waiters then it will block as a consequence of relying* on rt-mutexes, it does PI, etc