函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Drop a reference to the resource addressed by a key.* The hash bucket spinlock must not be held. This is* a no-op for private futexes, see comment in the get* counterpart.

函数原型:static void drop_futex_key_refs(union futex_key *key)

返回类型:void

参数:

类型参数名称
union futex_key *key
455  如果非ptr
457  WARN_ON_ONCE(1)
458  返回
461  如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_MMU)则返回
465  : & == We set bit 0 if key has a reference on inode
466  放置一个索引节点
467  退出
468  : & == We set bit 1 if key has a reference on mm
469  mmdrop(mm)
470  退出
调用者
名称描述
put_futex_key
futex_requeueex_requeue() - Requeue waiters from uaddr1 to uaddr2*@uaddr1: source futex user address*@flags: futex flags (FLAGS_SHARED, etc
unqueue_mequeue_me() - Remove the futex_q from its futex_hash_bucket*@q: The futex_q to unqueue* The q->lock_ptr must not be held by the caller