kern_mbuf.c (172462) | kern_mbuf.c (172463) |
---|---|
1/*- 2 * Copyright (c) 2004, 2005, 3 * Bosko Milekic <bmilekic@FreeBSD.org>. 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2004, 2005, 3 * Bosko Milekic <bmilekic@FreeBSD.org>. 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 --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/kern/kern_mbuf.c 172462 2007-10-06 21:13:55Z kmacy $"); | 29__FBSDID("$FreeBSD: head/sys/kern/kern_mbuf.c 172463 2007-10-06 21:42:39Z kmacy $"); |
30 31#include "opt_mac.h" 32#include "opt_param.h" 33 34#include <sys/param.h> 35#include <sys/malloc.h> 36#include <sys/systm.h> 37#include <sys/mbuf.h> --- 304 unchanged lines hidden (view full) --- 342 unsigned long flags; 343 344 m = (struct mbuf *)mem; 345 flags = (unsigned long)arg; 346 347 if ((flags & MB_NOTAGS) == 0 && (m->m_flags & M_PKTHDR) != 0) 348 m_tag_delete_chain(m, NULL); 349 KASSERT((m->m_flags & M_EXT) == 0, ("%s: M_EXT set", __func__)); | 30 31#include "opt_mac.h" 32#include "opt_param.h" 33 34#include <sys/param.h> 35#include <sys/malloc.h> 36#include <sys/systm.h> 37#include <sys/mbuf.h> --- 304 unchanged lines hidden (view full) --- 342 unsigned long flags; 343 344 m = (struct mbuf *)mem; 345 flags = (unsigned long)arg; 346 347 if ((flags & MB_NOTAGS) == 0 && (m->m_flags & M_PKTHDR) != 0) 348 m_tag_delete_chain(m, NULL); 349 KASSERT((m->m_flags & M_EXT) == 0, ("%s: M_EXT set", __func__)); |
350 KASSERT((m->m_flags & M_NOFREE) == 0, ("%s: M_NOFREE set", __func__)); |
|
350#ifdef INVARIANTS 351 trash_dtor(mem, size, arg); 352#endif 353} 354 355/* 356 * The Mbuf Packet zone destructor. 357 */ --- 218 unchanged lines hidden --- | 351#ifdef INVARIANTS 352 trash_dtor(mem, size, arg); 353#endif 354} 355 356/* 357 * The Mbuf Packet zone destructor. 358 */ --- 218 unchanged lines hidden --- |