Deleted Added
full compact
kern_shutdown.c (48225) kern_shutdown.c (48431)
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
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.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)kern_shutdown.c 8.3 (Berkeley) 1/21/94
39 * $Id: kern_shutdown.c,v 1.52 1999/05/12 22:30:46 peter Exp $
39 * $Id: kern_shutdown.c,v 1.53 1999/06/26 02:46:02 mckusick Exp $
40 */
41
42#include "opt_ddb.h"
43#include "opt_hw_wdog.h"
44#include "opt_panic.h"
45#include "opt_show_busybufs.h"
46
47#include <sys/param.h>

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

473 * with the given execution priority.
474 * returns 0 on success.
475 */
476int
477at_shutdown_pri(bootlist_fn function, void *arg, int queue, int pri)
478{
479 sle_p op, ep, ip;
480
40 */
41
42#include "opt_ddb.h"
43#include "opt_hw_wdog.h"
44#include "opt_panic.h"
45#include "opt_show_busybufs.h"
46
47#include <sys/param.h>

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

473 * with the given execution priority.
474 * returns 0 on success.
475 */
476int
477at_shutdown_pri(bootlist_fn function, void *arg, int queue, int pri)
478{
479 sle_p op, ep, ip;
480
481 op = NULL; /* shut up gcc */
481 if (queue < SHUTDOWN_PRE_SYNC
482 || queue > SHUTDOWN_FINAL) {
483 printf("at_shutdown: bad exit callout queue %d specified\n",
484 queue);
485 return (EINVAL);
486 }
487 if (rm_at_shutdown(function, arg))
488 printf("at_shutdown: exit callout entry was already present\n");

--- 72 unchanged lines hidden ---
482 if (queue < SHUTDOWN_PRE_SYNC
483 || queue > SHUTDOWN_FINAL) {
484 printf("at_shutdown: bad exit callout queue %d specified\n",
485 queue);
486 return (EINVAL);
487 }
488 if (rm_at_shutdown(function, arg))
489 printf("at_shutdown: exit callout entry was already present\n");

--- 72 unchanged lines hidden ---