svn commit: r348156 - in head/sys: kern sys

Konstantin Belousov kib at FreeBSD.org
Thu May 23 12:25:05 UTC 2019


Author: kib
Date: Thu May 23 12:25:03 2019
New Revision: 348156
URL: https://svnweb.freebsd.org/changeset/base/348156

Log:
  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

Modified:
  head/sys/kern/kern_descrip.c
  head/sys/sys/user.h

Modified: head/sys/kern/kern_descrip.c
==============================================================================
--- head/sys/kern/kern_descrip.c	Thu May 23 11:35:00 2019	(r348155)
+++ head/sys/kern/kern_descrip.c	Thu May 23 12:25:03 2019	(r348156)
@@ -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)
 {
 

Modified: head/sys/sys/user.h
==============================================================================
--- head/sys/sys/user.h	Thu May 23 11:35:00 2019	(r348155)
+++ head/sys/sys/user.h	Thu May 23 12:25:03 2019	(r348156)
@@ -608,6 +608,7 @@ int	kern_proc_vmmap_out(struct proc *p, struct sbuf *s
 	int flags);
 
 int	vntype_to_kinfo(int vtype);
+void	pack_kinfo(struct kinfo_file *kif);
 #endif /* !_KERNEL */
 
 #endif


More information about the svn-src-all mailing list