From bc2d137acb1af63a85623519d7004e7d5a5627ec Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 23 May 2019 12:25:03 +0000 Subject: [PATCH] Make pack_kinfo() available for external callers. Reviewed by: jilles, tmunro Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D20258 --- sys/kern/kern_descrip.c | 2 +- sys/sys/user.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 3a89053d870..4d09eea37d5 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -3409,7 +3409,7 @@ xlate_fflags(int fflags) } /* Trim unused data from kf_path by truncating the structure size. */ -static void +void pack_kinfo(struct kinfo_file *kif) { diff --git a/sys/sys/user.h b/sys/sys/user.h index db98abb5aef..75661257528 100644 --- a/sys/sys/user.h +++ b/sys/sys/user.h @@ -608,6 +608,7 @@ int kern_proc_vmmap_out(struct proc *p, struct sbuf *sb, ssize_t maxlen, int flags); int vntype_to_kinfo(int vtype); +void pack_kinfo(struct kinfo_file *kif); #endif /* !_KERNEL */ #endif