函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\textsearch.c Create Date:2022-07-27 08:08:21
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:xtsearch_prepare - Prepare a search*@algo: name of search algorithm*@pattern: pattern data*@len: length of pattern*@gfp_mask: allocation mask*@flags: search flags* Looks up the search algorithm module and creates a new textsearch

函数原型:struct ts_config *textsearch_prepare(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)

返回类型:struct ts_config

参数:

类型参数名称
const char *algo
const void *pattern
unsigned intlen
gfp_tgfp_mask
intflags
266  err等于负ENOENT
270  如果len恒等于0则返回:错误号
273  ops等于lookup_ts_algo(algo)
280  如果ops恒等于NULLflags按位与Automatically load textsearch modules when needed
281  request_module("ts_%s", algo)
282  ops等于lookup_ts_algo(algo)
286  如果(ops == NULL)则转到:errout
289  conf等于init(pattern, len, gfp_mask, flags)
290  如果是错误
291  err等于错误
292  转到:errout
295  ops等于ops
296  返回:conf
298  errout :
299  如果opsmodule_put(owner)
302  返回:错误号