git: kern: Remove the little-use kvasnprintf() and kvasfree()
Aaron LI
aly at crater.dragonflybsd.org
Mon Aug 31 02:04:09 PDT 2026
commit f52807a806e7f3f3bdb78d3a32ac54e71a990066
Author: Aaron LI <aly at aaronly.me>
Date: Sun Aug 30 12:18:05 2026 +0800
kern: Remove the little-use kvasnprintf() and kvasfree()
The kvasnprintf() requires a known max length, so it's basically the
same as kmalloc()+kvsnprintf(). Therefore, it's different to vasprintf()
and is of little use. Actually, the DRM subsystem implements its
kvasprintf(), the vasprintf() equivalent.
For simplicity, just remove kvasnprintf()+kvasfree() and convert
existing code to either use a buffer array or manually call kmalloc().
Summary of changes:
sys/dev/drm/drm_dragonfly.c | 5 ++---
sys/dev/raid/vinum/vinumconfig.c | 9 +++++----
sys/kern/kern_conf.c | 15 ++++++---------
sys/kern/subr_prf.c | 24 ------------------------
sys/sys/systm.h | 3 ---
sys/vfs/devfs/devfs_core.c | 12 ++++++------
6 files changed, 19 insertions(+), 49 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/f52807a806e7f3f3bdb78d3a32ac54e71a990066
--
DragonFly BSD source repository
More information about the Commits
mailing list