vnet.c (a35d3535ee28d2b9eda4e9b0eeedf8bf31f95ca3) vnet.c (9269189f980a65bc96fe5412b564b1c6c2df3cb3)
1/*-
2 * Copyright (c) 2004-2009 University of Zagreb
3 * Copyright (c) 2006-2009 FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by the University of Zagreb and the
7 * FreeBSD Foundation under sponsorship by the Stichting NLnet and the
8 * FreeBSD Foundation.

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

75 * - Virtual network stack memory allocator, which virtualizes global
76 * variables in the network stack
77 *
78 * - Virtualized SYSINIT's/SYSUNINIT's, which allow network stack subsystems
79 * to register startup/shutdown events to be run for each virtual network
80 * stack instance.
81 */
82
1/*-
2 * Copyright (c) 2004-2009 University of Zagreb
3 * Copyright (c) 2006-2009 FreeBSD Foundation
4 * All rights reserved.
5 *
6 * This software was developed by the University of Zagreb and the
7 * FreeBSD Foundation under sponsorship by the Stichting NLnet and the
8 * FreeBSD Foundation.

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

75 * - Virtual network stack memory allocator, which virtualizes global
76 * variables in the network stack
77 *
78 * - Virtualized SYSINIT's/SYSUNINIT's, which allow network stack subsystems
79 * to register startup/shutdown events to be run for each virtual network
80 * stack instance.
81 */
82
83FEATURE(vimage, "VIMAGE kernel virtualization");
84
83MALLOC_DEFINE(M_VNET, "vnet", "network stack control block");
84
85/*
86 * The virtual network stack list has two read-write locks, one sleepable and
87 * the other not, so that the list can be stablized and walked in a variety
88 * of network stack contexts. Both must be acquired exclusively to modify
89 * the list, but a read lock of either lock is sufficient to walk the list.
90 */

--- 732 unchanged lines hidden ---
85MALLOC_DEFINE(M_VNET, "vnet", "network stack control block");
86
87/*
88 * The virtual network stack list has two read-write locks, one sleepable and
89 * the other not, so that the list can be stablized and walked in a variety
90 * of network stack contexts. Both must be acquired exclusively to modify
91 * the list, but a read lock of either lock is sufficient to walk the list.
92 */

--- 732 unchanged lines hidden ---