diff options
author | arr <arr@FreeBSD.org> | 2002-06-24 22:31:17 +0000 |
---|---|---|
committer | arr <arr@FreeBSD.org> | 2002-06-24 22:31:17 +0000 |
commit | fc63b01c8774c47c33fc03d0b9fd17c5f7bec0bf (patch) | |
tree | b7448a1b272f7003c83fd474d79188969bc972f1 /sys/netatm/port.h | |
parent | 1c28000a2297d886fa3e4fcc11a054df8dfb1a8e (diff) | |
download | FreeBSD-src-fc63b01c8774c47c33fc03d0b9fd17c5f7bec0bf.zip FreeBSD-src-fc63b01c8774c47c33fc03d0b9fd17c5f7bec0bf.tar.gz |
- Remove UM_* user land memory macros since they are no longer used.
Diffstat (limited to 'sys/netatm/port.h')
-rw-r--r-- | sys/netatm/port.h | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/sys/netatm/port.h b/sys/netatm/port.h index 6de18b7..60b48eb 100644 --- a/sys/netatm/port.h +++ b/sys/netatm/port.h @@ -38,22 +38,6 @@ #ifndef _NETATM_PORT_H #define _NETATM_PORT_H -/* - * User-space memory management - * - * UM_ALLOC(size) Returns an allocated kernel memory chunk of size bytes. - * UM_FREE(addr) Free a kernel memory chunk of size bytes. - * UM_COPY(from, to, len) - * Copies len bytes of data from from to to. - * UM_ZERO(addr, len) Zeros len bytes of data from addr. - * - */ -#define UM_ALLOC(size) malloc((size_t)(size)) -#define UM_FREE(addr) free((void *)(addr)) -#define UM_COPY(from, to, len) bcopy((void *)(from), (void *)(to),\ - (size_t)(len)) -#define UM_ZERO(addr, len) bzero((void *)(addr), (size_t)(len)) - #ifdef _KERNEL /* @@ -267,7 +251,7 @@ typedef struct mbuf KBuffer; & ~(sizeof(long) - 1)); \ } #define KB_HEADROOM(bfr, n) { \ - /* n = M_LEADINGSPACE(bfr) XXX */ \ + /* N = m_leadingspace(BFR) XXX */ \ (n) = ((bfr)->m_flags & M_EXT ? (bfr)->m_data - (bfr)->m_ext.ext_buf : \ (bfr)->m_flags & M_PKTHDR ? (bfr)->m_data - (bfr)->m_pktdat : \ (bfr)->m_data - (bfr)->m_dat); \ |