skb_find_text()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux