FreeBSD/sys/netinet/udp_usrreq.c
/*
 * Kernel module interface for updating udpstat.  The argument is an index
 * into udpstat treated as an array of u_long.  While this encodes the
 * general layout of udpstat into the caller, it doesn't encode its location,
 * so that future changes to add, for example, per-CPU stats support won't
 * cause binary compatibility problems for kernel modules.
 */
Kernel module interface for updating udpstat.  The argument is an index
into udpstat treated as an array of u_long.  While this encodes the
general layout of udpstat into the caller, it doesn't encode its location,
so that future changes to add, for example, per-CPU stats support won't
cause binary compatibility problems for kernel modules.
Kernel module interface for updating udpstat . The argument is an index into udpstat treated as an array of u_long . While this encodes the general layout of udpstat into the caller it doesn ' t encode its location so that future changes to add for example per - CPU stats support won ' t cause binary compatibility problems for kernel modules .
void
kmod_udpstat_inc(int statnum)
{
	counter_u64_add(VNET(udpstat)[statnum], 1);
}
void kmod_udpstat_inc ( int statnum ) { counter_u64_add ( VNET ( udpstat ) [ statnum ] , 1 ) ; }
Kernel module interface for updating udpstat.
Kernel module interface for updating udpstat .