Add kmem_vasprintf function

We might as well have both asprintf() variants.  This allows us
to safely pass a va_list through several levels of the stack
using va_copy() instead of va_start().
This commit is contained in:
Brian Behlendorf
2010-06-24 09:41:59 -07:00
parent 438683c0a9
commit e6de04b73c
2 changed files with 22 additions and 5 deletions
+1
View File
@@ -248,6 +248,7 @@ enum {
#define KMC_DEFAULT_SEEKS 1
extern int kmem_debugging(void);
extern char *kmem_vasprintf(const char *fmt, va_list ap);
extern char *kmem_asprintf(const char *fmt, ...);
#define strfree(str) kfree(str)
#define strdup(str) kstrdup(str, GFP_KERNEL)