Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:wait_for_owner_exiting - Block until the owner has exited*@ret: owner's current futex lock status*@exiting: Pointer to the exiting task* Caller must hold a refcount on @exiting.

Proto:static void wait_for_owner_exiting(int ret, struct task_struct *exiting)

Type:void

Parameter:

TypeParameterName
intret
struct task_struct *exiting
1188  If ret != -EBUSY Then
1189  WARN_ON_ONCE(exiting)
1190  Return
1193  If WARN_ON_ONCE(ret == - EBUSY && !exiting) Then Return
1196  mutex_lock( & futex_exit_mutex)
1205  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1207  put_task_struct(exiting)
Caller
NameDescribe
futex_requeueex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc
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