Lines Matching defs:conf
80 * struct ts_config *conf;
85 * conf = textsearch_prepare("kmp", pattern, strlen(pattern),
87 * if (IS_ERR(conf)) {
88 * err = PTR_ERR(conf);
92 * pos = textsearch_find_continuous(conf, &state, example, strlen(example));
96 * textsearch_destroy(conf);
205 struct ts_config *conf,
220 * @conf: search configuration
231 unsigned int textsearch_find_continuous(struct ts_config *conf,
237 conf->get_next_block = get_linear_data;
241 return textsearch_find(conf, state);
267 struct ts_config *conf;
289 conf = ops->init(pattern, len, gfp_mask, flags);
290 if (IS_ERR(conf)) {
291 err = PTR_ERR(conf);
295 conf->ops = ops;
296 return conf;
308 * @conf: search configuration
313 void textsearch_destroy(struct ts_config *conf)
315 if (conf->ops) {
316 if (conf->ops->destroy)
317 conf->ops->destroy(conf);
318 module_put(conf->ops->owner);
321 kfree(conf);