return rd->argc;
}
-static char *rd_argv(struct rd *rd)
+char *rd_argv(struct rd *rd)
{
if (!rd_argc(rd))
return NULL;
return *rd->argv;
}
-static int strcmpx(const char *str1, const char *str2)
+int strcmpx(const char *str1, const char *str2)
{
if (strlen(str1) > strlen(str2))
return -1;
return strcmpx(rd_argv(rd), pattern) == 0;
}
-static void rd_arg_inc(struct rd *rd)
+void rd_arg_inc(struct rd *rd)
{
if (!rd_argc(rd))
return;
rd->argv++;
}
-static bool rd_no_arg(struct rd *rd)
+bool rd_no_arg(struct rd *rd)
{
return rd_argc(rd) == 0;
}
[RDMA_NLDEV_ATTR_DRIVER_U64] = MNL_TYPE_U64,
};
-static int rd_attr_check(const struct nlattr *attr, int *typep)
+int rd_attr_check(const struct nlattr *attr, int *typep)
{
int type;
pr_out("\n");
}
-static void newline_indent(struct rd *rd)
+void newline_indent(struct rd *rd)
{
newline(rd);
if (!rd->json_output)