Provide counter_warning(9) KPI which allows to issue limited number of
authorkib <kib@FreeBSD.org>
Thu, 21 Jul 2016 16:34:56 +0000 (16:34 +0000)
committerkib <kib@FreeBSD.org>
Thu, 21 Jul 2016 16:34:56 +0000 (16:34 +0000)
commit48a468731d645cee6fe1dd15232469d5d431673c
tree99028bdec5601f45dbfbd4586b77a286cff58778
parent95308d17d3b12abbc8848f48aa09881fa9c122e3
Provide counter_warning(9) KPI which allows to issue limited number of
warnings for some kernel events, mostly intended for the use of
obsoleted or otherwise undersired interfaces.

This is an abstracted and race-expelled code from compat pty driver.

Requested and reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D7270
sys/dev/pty/pty.c
sys/kern/subr_prf.c
sys/sys/systm.h