kern_shutdown.c (174898) | kern_shutdown.c (174921) |
---|---|
1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1986, 1988, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 21 unchanged lines hidden (view full) --- 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 174898 2007-12-25 17:52:02Z rwatson $"); | 38__FBSDID("$FreeBSD: head/sys/kern/kern_shutdown.c 174921 2007-12-26 11:32:33Z rwatson $"); |
39 | 39 |
40#include "opt_ddb.h" |
|
40#include "opt_kdb.h" 41#include "opt_mac.h" 42#include "opt_panic.h" 43#include "opt_show_busybufs.h" 44#include "opt_sched.h" 45 46#include <sys/param.h> 47#include <sys/systm.h> --- 11 unchanged lines hidden (view full) --- 59#include <sys/proc.h> 60#include <sys/reboot.h> 61#include <sys/resourcevar.h> 62#include <sys/sched.h> 63#include <sys/smp.h> /* smp_active */ 64#include <sys/sysctl.h> 65#include <sys/sysproto.h> 66 | 41#include "opt_kdb.h" 42#include "opt_mac.h" 43#include "opt_panic.h" 44#include "opt_show_busybufs.h" 45#include "opt_sched.h" 46 47#include <sys/param.h> 48#include <sys/systm.h> --- 11 unchanged lines hidden (view full) --- 60#include <sys/proc.h> 61#include <sys/reboot.h> 62#include <sys/resourcevar.h> 63#include <sys/sched.h> 64#include <sys/smp.h> /* smp_active */ 65#include <sys/sysctl.h> 66#include <sys/sysproto.h> 67 |
68#include <ddb/ddb.h> 69 |
|
67#include <machine/cpu.h> 68#include <machine/pcb.h> 69#include <machine/smp.h> 70 71#include <security/mac/mac_framework.h> 72 73#include <vm/vm.h> 74#include <vm/vm_object.h> --- 160 unchanged lines hidden (view full) --- 235 if (dumper.dumper == NULL) { 236 printf("Cannot dump. No dump device defined.\n"); 237 return; 238 } 239 240 savectx(&dumppcb); 241 dumptid = curthread->td_tid; 242 dumping++; | 70#include <machine/cpu.h> 71#include <machine/pcb.h> 72#include <machine/smp.h> 73 74#include <security/mac/mac_framework.h> 75 76#include <vm/vm.h> 77#include <vm/vm_object.h> --- 160 unchanged lines hidden (view full) --- 238 if (dumper.dumper == NULL) { 239 printf("Cannot dump. No dump device defined.\n"); 240 return; 241 } 242 243 savectx(&dumppcb); 244 dumptid = curthread->td_tid; 245 dumping++; |
243 dumpsys(&dumper); | 246#ifdef DDB 247 if (textdump_pending) 248 textdump_dumpsys(&dumper); 249 else 250#endif 251 dumpsys(&dumper); |
244} 245 246static int 247isbufbusy(struct buf *bp) 248{ 249 if (((bp->b_flags & (B_INVAL | B_PERSISTENT)) == 0 && 250 BUF_REFCNT(bp) > 0) || 251 ((bp->b_flags & (B_DELWRI | B_INVAL)) == B_DELWRI)) --- 412 unchanged lines hidden --- | 252} 253 254static int 255isbufbusy(struct buf *bp) 256{ 257 if (((bp->b_flags & (B_INVAL | B_PERSISTENT)) == 0 && 258 BUF_REFCNT(bp) > 0) || 259 ((bp->b_flags & (B_DELWRI | B_INVAL)) == B_DELWRI)) --- 412 unchanged lines hidden --- |