Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:bm_init

Proto:static struct ts_config *bm_init(const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)

Type:struct ts_config

Parameter:

TypeParameterName
const void *pattern
unsigned intlen
gfp_tgfp_mask
intflags
147  prefix_tbl_len = len * sizeof(unsignedint)
148  priv_size = size of bm + len + prefix_tbl_len
150  conf = alloc_ts_config(priv_size, gfp_mask)
151  If IS_ERR(conf) Then Return conf
154  flags = flags
155  bm = ts_config_priv(conf)
156  patlen = len
157  pattern = good_shift + prefix_tbl_len
158  If flags & Searches string case insensitively Then When i < len cycle
160  pattern[i] = toupper(((u8 * )pattern)[i])
161  Else No 3D Now!(pattern, pattern, len)
163  compute_prefix_tbl(bm, flags)
165  Return conf