Skip to contentSkip to conversation

statistics infrastructure - prerequisite: parser enhancement

PATCH In review Martin Peschke 1 participant 1 message Dec 14, 2005 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 2/6 statistics infrastructure - prerequisite: parser enhancement

[patch 2/6] statistics infrastructure - prerequisite: parser enhancement

This patch adds two match_* derivates for 64 bit operands to the parser library.

---

 include/linux/parser.h |    2 +
 lib/parser.c           |   60 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)
include/linux/parser.h +2 -0
diff -Nurp b/include/linux/parser.h c/include/linux/parser.h
@@ -31,3 +31,5 @@ int match_octal(substring_t *, int *resu
 int match_hex(substring_t *, int *result);
 void match_strcpy(char *, substring_t *);
 char *match_strdup(substring_t *);
+int match_u64(substring_t *, u64 *result, int);
+int match_s64(substring_t *, s64 *result, int);
lib/parser.c +60 -0

69 lines not on this page · raw message