]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r228648:
authortrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Apr 2012 18:43:27 +0000 (18:43 +0000)
committertrociny <trociny@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 5 Apr 2012 18:43:27 +0000 (18:43 +0000)
commit1212f973752b9e496251f564bd32def0a178f291
tree28057f01787863ffb186a83a161228cc2be524f8
parentd2bf6500b9f2d967d52cc6efc41fbd87ff3a1a9c
MFC r228648:

On start most of sysctl_kern_proc functions use the same pattern:
locate a process calling pfind() and do some additional checks like
p_candebug(). To reduce this code duplication a new function pget() is
introduced and used.

As the function may be useful not only in kern_proc.c it is in the
kernel name space.

Suggested by: kib
Reviewed by: kib

git-svn-id: svn://svn.freebsd.org/base/stable/8@233926 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/kern_proc.c
sys/sys/proc.h