Date: Mon, 1 Mar 2010 00:42:36 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/net netisr.c netisr_internal.h Message-ID: <201003010042.o210gt0Y036350@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2010-03-01 00:42:36 UTC FreeBSD src repository Modified files: sys/net netisr.c Added files: sys/net netisr_internal.h Log: SVN rev 204497 on 2010-03-01 00:42:36Z by rwatson Changes to support crashdump analysis of netisr: - Rename the netisr protocol registration array, 'np' to 'netisr_proto', in order to reduce the chances of symbol name collisions. It remains statically defined, but it will be looked up by netstat(1). - Move certain internal structure definitions from netisr.c to netisr_internal.h so that netstat(1) can find them. They remain private, and should not be used for any other purpose (for example, they should not be used by kernel modules, which must instead use the public interfaces in netisr.h). - Store a kernel-compiled version of NETISR_MAXPROT in the global variable netisr_maxprot, and export via a sysctl, so that it is available for use by netstat(1). This is especially important for crashdump interpretation, where the size of the workstream structure is determined by the maximum number of protocols compiled into the kernel. MFC after: 1 week Sponsored by: Juniper Networks Revision Changes Path 1.38 +52 -113 src/sys/net/netisr.c 1.1 +127 -0 src/sys/net/netisr_internal.h (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003010042.o210gt0Y036350>