diff options
author | trociny <trociny@FreeBSD.org> | 2011-12-17 16:59:22 +0000 |
---|---|---|
committer | trociny <trociny@FreeBSD.org> | 2011-12-17 16:59:22 +0000 |
commit | fe0982e5869650ea40e4f57046f7285c50f45dd3 (patch) | |
tree | 6fd81d256c9a54a22b7ad5acfb000c503ea24208 /usr.bin/ncplist/Makefile | |
parent | 3aeee4ad81bee793e83e55a6d1156d433f63a8f7 (diff) | |
download | FreeBSD-src-fe0982e5869650ea40e4f57046f7285c50f45dd3.zip FreeBSD-src-fe0982e5869650ea40e4f57046f7285c50f45dd3.tar.gz |
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
MFC after: 2 weeks
Diffstat (limited to 'usr.bin/ncplist/Makefile')
0 files changed, 0 insertions, 0 deletions