subr_devstat.c (40359) | subr_devstat.c (41153) |
---|---|
1/* 2 * Copyright (c) 1997, 1998 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 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 * $Id: subr_devstat.c,v 1.3 1998/10/06 04:16:07 ken Exp $ | 28 * $Id: subr_devstat.c,v 1.4 1998/10/14 20:44:05 ken Exp $ |
29 */ 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/time.h> 35#include <sys/types.h> 36#include <sys/sysctl.h> --- 7 unchanged lines hidden (view full) --- 44 45STAILQ_HEAD(devstatlist, devstat) device_statq; 46 47/* 48 * Take a malloced and zeroed devstat structure given to us, fill it in 49 * and add it to the queue of devices. 50 */ 51void | 29 */ 30 31#include <sys/param.h> 32#include <sys/kernel.h> 33#include <sys/systm.h> 34#include <sys/time.h> 35#include <sys/types.h> 36#include <sys/sysctl.h> --- 7 unchanged lines hidden (view full) --- 44 45STAILQ_HEAD(devstatlist, devstat) device_statq; 46 47/* 48 * Take a malloced and zeroed devstat structure given to us, fill it in 49 * and add it to the queue of devices. 50 */ 51void |
52devstat_add_entry(struct devstat *ds, char *dev_name, | 52devstat_add_entry(struct devstat *ds, const char *dev_name, |
53 int unit_number, u_int32_t block_size, 54 devstat_support_flags flags, 55 devstat_type_flags device_type) 56{ 57 int s; 58 struct devstatlist *devstat_head; 59 60 if (ds == NULL) --- 195 unchanged lines hidden --- | 53 int unit_number, u_int32_t block_size, 54 devstat_support_flags flags, 55 devstat_type_flags device_type) 56{ 57 int s; 58 struct devstatlist *devstat_head; 59 60 if (ds == NULL) --- 195 unchanged lines hidden --- |