Function report |
Source Code:lib\textsearch.c |
Create Date:2022-07-28 07:10:20 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:struct ts_config *textsearch_prepare(const char *algo, const void *pattern, unsigned int len, gfp_t gfp_mask, int flags)
Type:struct ts_config
Parameter:
| Type | Parameter | Name |
|---|---|---|
| const char * | algo | |
| const void * | pattern | |
| unsigned int | len | |
| gfp_t | gfp_mask | |
| int | flags |
| 273 | ops = lookup_ts_algo(algo) |
| 280 | If ops == NULL && flags & Automatically load textsearch modules when needed Then |
| 281 | try to load a kernel module("ts_%s", algo) |
| 282 | ops = lookup_ts_algo(algo) |
| 296 | Return conf |
| 298 | errout : |
| 299 | If ops Then module_put(owner) |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |