Lines Matching defs:ops
133 * @ops: operations lookup table
136 * their presence. The specified &@ops must have %name set to a
143 int textsearch_register(struct ts_ops *ops)
148 if (ops->name == NULL || ops->find == NULL || ops->init == NULL ||
149 ops->get_pattern == NULL || ops->get_pattern_len == NULL)
154 if (!strcmp(ops->name, o->name))
158 list_add_tail_rcu(&ops->list, &ts_ops);
168 * @ops: operations lookup table
172 * The &ops parameter must be the same as the one during the
178 int textsearch_unregister(struct ts_ops *ops)
185 if (o == ops) {
268 struct ts_ops *ops;
273 ops = lookup_ts_algo(algo);
280 if (ops == NULL && flags & TS_AUTOLOAD) {
282 ops = lookup_ts_algo(algo);
286 if (ops == NULL)
289 conf = ops->init(pattern, len, gfp_mask, flags);
295 conf->ops = ops;
299 if (ops)
300 module_put(ops->owner);
315 if (conf->ops) {
316 if (conf->ops->destroy)
317 conf->ops->destroy(conf);
318 module_put(conf->ops->owner);