struct ts_config * textsearch_prepare (const char * algo, const void * pattern, unsigned int len, int gfp_mask, int flags);
Looks up the search algorithm module and creates a new textsearch configuration for the specified pattern. Upon completion all necessary refcnts are held and the configuration must be put back using textsearch_put after usage.
The format of the pattern may not be compatible between the various search algorithms.
Returns a new textsearch configuration according to the specified parameters or a ERR_PTR.