Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\rbtree_latch.h Create Date:2022-07-28 05:48:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:static __always_inline struct latch_tree_node *latch_tree_find(void *key, struct latch_tree_root *root, const struct latch_tree_ops *ops)

Type:struct latch_tree_node

Parameter:

TypeParameterName
void *key
struct latch_tree_root *root
const struct latch_tree_ops *ops
206  Do
207  seq = raw_read_seqcount_latch( & seq)
208  node = __lt_find(key, root, seq & 1, comp)
209  When 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 cycle
211  Return node