函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\rbtree_latch.h Create Date:2022-07-27 06:49:17
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:latch_tree_find() - find the node matching @key in the trees @root*@key: search key*@root: trees to search for @key*@ops: operators defining the node order* Does a lockless lookup in the trees @root for the node matching @key

函数原型:static __always_inline struct latch_tree_node *latch_tree_find(void *key, struct latch_tree_root *root, const struct latch_tree_ops *ops)

返回类型:struct latch_tree_node

参数:

类型参数名称
void *key
struct latch_tree_root *root
const struct latch_tree_ops *ops
206  循环
207  seq等于raw_read_seqcount_latch( & seq)
208  node等于__lt_find(key, root, seq & 1, comp)
209 ad_seqcount_retry - end a seq-read critical section*@s: pointer to seqcount_t*@start: count, from read_seqcount_begin* Returns: 1 if retry is required, else 0* read_seqcount_retry closes a read critical section of the given seqcount循环
211  返回:node