Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Change ext_size to a size_t, and update the signature of...
details: https://anonhg.NetBSD.org/src/rev/8fe41d1d0d35
branches: trunk
changeset: 542508:8fe41d1d0d35
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jan 31 05:00:24 2003 +0000
description:
Change ext_size to a size_t, and update the signature of ext_free.
diffstat:
sys/arch/alpha/a12/if_ade.c | 4 ++--
sys/dev/pci/if_bge.c | 6 +++---
sys/dev/pci/if_ti.c | 8 ++++----
sys/kern/uipc_socket.c | 8 ++++----
sys/sys/mbuf.h | 6 +++---
5 files changed, 16 insertions(+), 16 deletions(-)
diffs (138 lines):
diff -r 90e9e567e4f1 -r 8fe41d1d0d35 sys/arch/alpha/a12/if_ade.c
--- a/sys/arch/alpha/a12/if_ade.c Fri Jan 31 04:59:40 2003 +0000
+++ b/sys/arch/alpha/a12/if_ade.c Fri Jan 31 05:00:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ade.c,v 1.18 2003/01/20 05:29:58 simonb Exp $ */
+/* $NetBSD: if_ade.c,v 1.19 2003/01/31 05:00:25 thorpej Exp $ */
/*
* NOTE: this version of if_de was modified for bounce buffers prior
@@ -234,7 +234,7 @@
* course, they won't be needing de(4) drivers.
*/
static void
-donothing(struct mbuf *m, caddr_t buf, u_int size, void *arg)
+donothing(struct mbuf *m, caddr_t buf, size_t size, void *arg)
{
int s;
diff -r 90e9e567e4f1 -r 8fe41d1d0d35 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Fri Jan 31 04:59:40 2003 +0000
+++ b/sys/dev/pci/if_bge.c Fri Jan 31 05:00:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.30 2003/01/31 01:03:35 thorpej Exp $ */
+/* $NetBSD: if_bge.c,v 1.31 2003/01/31 05:00:24 thorpej Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -149,7 +149,7 @@
int bge_alloc_jumbo_mem(struct bge_softc *);
void bge_free_jumbo_mem(struct bge_softc *);
void *bge_jalloc(struct bge_softc *);
-void bge_jfree(struct mbuf *, caddr_t, u_int, void *);
+void bge_jfree(struct mbuf *, caddr_t, size_t, void *);
int bge_newbuf_std(struct bge_softc *, int, struct mbuf *, bus_dmamap_t);
int bge_newbuf_jumbo(struct bge_softc *, int, struct mbuf *);
int bge_init_rx_ring_std(struct bge_softc *);
@@ -671,7 +671,7 @@
bge_jfree(m, buf, size, arg)
struct mbuf *m;
caddr_t buf;
- u_int size;
+ size_t size;
void *arg;
{
struct bge_jpool_entry *entry;
diff -r 90e9e567e4f1 -r 8fe41d1d0d35 sys/dev/pci/if_ti.c
--- a/sys/dev/pci/if_ti.c Fri Jan 31 04:59:40 2003 +0000
+++ b/sys/dev/pci/if_ti.c Fri Jan 31 05:00:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ti.c,v 1.55 2003/01/21 05:39:57 itojun Exp $ */
+/* $NetBSD: if_ti.c,v 1.56 2003/01/31 05:00:25 thorpej Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.55 2003/01/21 05:39:57 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.56 2003/01/31 05:00:25 thorpej Exp $");
#include "bpfilter.h"
#include "opt_inet.h"
@@ -195,7 +195,7 @@
static void ti_handle_events __P((struct ti_softc *));
static int ti_alloc_jumbo_mem __P((struct ti_softc *));
static void *ti_jalloc __P((struct ti_softc *));
-static void ti_jfree __P((struct mbuf *, caddr_t, u_int, void *));
+static void ti_jfree __P((struct mbuf *, caddr_t, size_t, void *));
static int ti_newbuf_std __P((struct ti_softc *, int, struct mbuf *, bus_dmamap_t));
static int ti_newbuf_mini __P((struct ti_softc *, int, struct mbuf *, bus_dmamap_t));
static int ti_newbuf_jumbo __P((struct ti_softc *, int, struct mbuf *));
@@ -684,7 +684,7 @@
static void ti_jfree(m, buf, size, arg)
struct mbuf *m;
caddr_t buf;
- u_int size;
+ size_t size;
void *arg;
{
struct ti_softc *sc;
diff -r 90e9e567e4f1 -r 8fe41d1d0d35 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c Fri Jan 31 04:59:40 2003 +0000
+++ b/sys/kern/uipc_socket.c Fri Jan 31 05:00:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_socket.c,v 1.75 2002/11/27 04:07:42 itojun Exp $ */
+/* $NetBSD: uipc_socket.c,v 1.76 2003/01/31 05:00:24 thorpej Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.75 2002/11/27 04:07:42 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.76 2003/01/31 05:00:24 thorpej Exp $");
#include "opt_sock_counters.h"
#include "opt_sosend_loan.h"
@@ -151,7 +151,7 @@
#define SOCK_LOAN_CHUNK 65536
static void
-sodoloanfree(caddr_t buf, u_int size)
+sodoloanfree(caddr_t buf, size_t size)
{
struct vm_page **pgs;
vaddr_t va, sva, eva;
@@ -221,7 +221,7 @@
}
static void
-soloanfree(struct mbuf *m, caddr_t buf, u_int size, void *arg)
+soloanfree(struct mbuf *m, caddr_t buf, size_t size, void *arg)
{
struct socket *so = arg;
int s;
diff -r 90e9e567e4f1 -r 8fe41d1d0d35 sys/sys/mbuf.h
--- a/sys/sys/mbuf.h Fri Jan 31 04:59:40 2003 +0000
+++ b/sys/sys/mbuf.h Fri Jan 31 05:00:24 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mbuf.h,v 1.71 2003/01/31 04:55:52 thorpej Exp $ */
+/* $NetBSD: mbuf.h,v 1.72 2003/01/31 05:00:24 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1999, 2001 The NetBSD Foundation, Inc.
@@ -158,9 +158,9 @@
struct m_ext {
caddr_t ext_buf; /* start of buffer */
void (*ext_free) /* free routine if not the usual */
- (struct mbuf *, caddr_t, u_int, void *);
+ (struct mbuf *, caddr_t, size_t, void *);
void *ext_arg; /* argument for ext_free */
- u_int ext_size; /* size of buffer, for ext_free */
+ size_t ext_size; /* size of buffer, for ext_free */
int ext_type; /* malloc type */
struct mbuf *ext_nextref;
struct mbuf *ext_prevref;
Home |
Main Index |
Thread Index |
Old Index