Deleted Added
full compact
subr_devstat.c (62573) subr_devstat.c (62622)
1/*
2 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*
2 * Copyright (c) 1997, 1998, 1999 Kenneth D. Merry.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/kern/subr_devstat.c 62573 2000-07-04 11:25:35Z phk $
28 * $FreeBSD: head/sys/kern/subr_devstat.c 62622 2000-07-05 07:46:41Z jhb $
29 */
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/bio.h>
35#include <sys/sysctl.h>
36

--- 262 unchanged lines hidden (view full) ---

299 0, 0, sysctl_devstat, "S,devstat", "All devices in the devstat list");
300/*
301 * Export the number of devices in the system so that userland utilities
302 * can determine how much memory to allocate to hold all the devices.
303 */
304SYSCTL_INT(_kern_devstat, OID_AUTO, numdevs, CTLFLAG_RD,
305 &devstat_num_devs, 0, "Number of devices in the devstat list");
306SYSCTL_LONG(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD,
29 */
30
31#include <sys/param.h>
32#include <sys/kernel.h>
33#include <sys/systm.h>
34#include <sys/bio.h>
35#include <sys/sysctl.h>
36

--- 262 unchanged lines hidden (view full) ---

299 0, 0, sysctl_devstat, "S,devstat", "All devices in the devstat list");
300/*
301 * Export the number of devices in the system so that userland utilities
302 * can determine how much memory to allocate to hold all the devices.
303 */
304SYSCTL_INT(_kern_devstat, OID_AUTO, numdevs, CTLFLAG_RD,
305 &devstat_num_devs, 0, "Number of devices in the devstat list");
306SYSCTL_LONG(_kern_devstat, OID_AUTO, generation, CTLFLAG_RD,
307 &devstat_generation, "Devstat list generation");
307 &devstat_generation, 0, "Devstat list generation");
308SYSCTL_INT(_kern_devstat, OID_AUTO, version, CTLFLAG_RD,
309 &devstat_version, 0, "Devstat list version number");
308SYSCTL_INT(_kern_devstat, OID_AUTO, version, CTLFLAG_RD,
309 &devstat_version, 0, "Devstat list version number");