Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\textsearch.c Create Date:2022-07-28 07:10:18
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:xtsearch_register - register a textsearch module*@ops: operations lookup table* This function must be called by textsearch modules to announce* their presence

Proto:int textsearch_register(struct ts_ops *ops)

Type:int

Parameter:

TypeParameterName
struct ts_ops *ops
145  err = -EEXIST
148  If (name == NULL || find == NULL || init == NULL || get_pattern == NULL || get_pattern_len == NULL) Then Return -EINVAL
152  spin_lock( & ts_mod_lock)
154  If Not strcmp(name, name) Then Go to errout
158  list_add_tail_rcu - add a new entry to rcu-protected list*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head
159  err = 0
160  errout :
161  spin_unlock( & ts_mod_lock)
162  Return err
Caller
NameDescribe
init_kmp
init_bm
init_fsm