* skb_find_text()
@ 2017-01-20 8:43 Jannik Becher
0 siblings, 0 replies; only message in thread
From: Jannik Becher @ 2017-01-20 8:43 UTC (permalink / raw)
To: kernelnewbies
Hi there,
I have a problem with the function skb_find_text().
Commit 059a2440fd3cf4ec57735db2c0a90401cde84fca removes the state argument
from the parameters with the hint, that it isn't needed by the caller. But
is it not needed by the function textsearch_next?
Example:
int pos;
struct ts_state state;
for (pos = skb_find_text(skb, 0, INT_MAX, conf);
pos != UINT_MAX;
pos = textsearch_next(conf, &state))
pr_info("String was found.");
Is this the right way to search for a string?
Thanks,
Jannik Becher
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170120/f1c4cb31/attachment.html
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-20 8:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20 8:43 skb_find_text() Jannik Becher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).