mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user