TEXTSEARCH_PREPARE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

textsearch_prepare - Prepare a search  

SYNOPSIS

"SYNOPSIS"

struct ts_config * textsearch_prepare (const char * algo, const void * pattern, unsigned int len, int gfp_mask, int flags);  

ARGUMENTS

algo
name of search algorithm
pattern
pattern data
len
length of pattern
gfp_mask
allocation mask
flags
search flags
 

DESCRIPTION

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.  

NOTE

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.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
NOTE

This document was created by man2html, using the manual pages.
Time: 00:02:54 GMT, October 09, 2005