The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/bsd/kern/spl.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*
    2  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
    3  *
    4  * @APPLE_LICENSE_HEADER_START@
    5  * 
    6  * Copyright (c) 1999-2003 Apple Computer, Inc.  All Rights Reserved.
    7  * 
    8  * This file contains Original Code and/or Modifications of Original Code
    9  * as defined in and that are subject to the Apple Public Source License
   10  * Version 2.0 (the 'License'). You may not use this file except in
   11  * compliance with the License. Please obtain a copy of the License at
   12  * http://www.opensource.apple.com/apsl/ and read it before using this
   13  * file.
   14  * 
   15  * The Original Code and all software distributed under the License are
   16  * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
   17  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
   18  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
   19  * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
   20  * Please see the License for the specific language governing rights and
   21  * limitations under the License.
   22  * 
   23  * @APPLE_LICENSE_HEADER_END@
   24  */
   25 #include <machine/machine_routines.h>
   26 #include <machine/spl.h>
   27 #include <kern/thread.h>
   28 
   29 unsigned
   30 sploff(
   31         void)
   32 {
   33         if(thread_funnel_get() == THR_FUNNEL_NULL)
   34                 panic("%s not under funnel", "sploff()");
   35         return(0);
   36 }
   37 
   38 unsigned
   39 splhigh(
   40         void)
   41 {
   42         if(thread_funnel_get() == THR_FUNNEL_NULL)
   43                 panic("%s not under funnel", "splhigh()");
   44         return(0);
   45 }
   46 
   47 unsigned
   48 splsched(
   49         void)
   50 {
   51         if(thread_funnel_get() == THR_FUNNEL_NULL)
   52                 panic("%s not under funnel", "splsched()");
   53         return(0);
   54 }
   55 
   56 unsigned
   57 splclock (
   58         void)
   59 {
   60         if(thread_funnel_get() == THR_FUNNEL_NULL)
   61                 panic("%s not under funnel", "splclock()");
   62         return(0);
   63 }
   64 
   65 unsigned
   66 splpower (
   67         void)
   68 {
   69         if(thread_funnel_get() == THR_FUNNEL_NULL)
   70                 panic("%s not under funnel", "splpower()");
   71         return(0);
   72 }
   73 
   74 unsigned
   75 splvm(
   76         void)
   77 {
   78         if(thread_funnel_get() == THR_FUNNEL_NULL)
   79                 panic("%s not under funnel", "splvm()");
   80         return(0);
   81 }
   82 
   83 unsigned
   84 splbio (
   85         void)
   86 {
   87         if(thread_funnel_get() == THR_FUNNEL_NULL)
   88                 panic("%s not under funnel", "splbio()");
   89         return(0);
   90 }
   91 
   92 unsigned
   93 splimp(
   94         void)
   95 {
   96         if(thread_funnel_get() == THR_FUNNEL_NULL)
   97                 panic("%s not under funnel", "splimp()");
   98         return(0);
   99 }
  100 
  101 unsigned
  102 spltty(void)
  103 {
  104         if(thread_funnel_get() == THR_FUNNEL_NULL)
  105                 panic("%s not under funnel", "spltty()");
  106         return(0);
  107 }
  108 
  109 unsigned
  110 splnet(
  111         void)
  112 {
  113         if(thread_funnel_get() == THR_FUNNEL_NULL)
  114                 panic("%s not under funnel", "splnet()");
  115        return(0);
  116 }
  117 
  118 unsigned
  119 splsoftclock(void)
  120 {
  121         if(thread_funnel_get() == THR_FUNNEL_NULL)
  122                 panic("%s not under funnel", "splsoftclock()");
  123         return(0);
  124 }
  125 
  126 void
  127 spllo(void)
  128 {
  129         if(thread_funnel_get() == THR_FUNNEL_NULL)
  130                 panic("%s not under funnel", "spllo()");
  131         return;
  132 }
  133 
  134 void
  135 spl0(void)
  136 {
  137         if(thread_funnel_get() == THR_FUNNEL_NULL)
  138                 panic("%s not under funnel", "spl0()");
  139         return;
  140 }
  141 
  142 void
  143 spln(unsigned t)
  144 {
  145         if(thread_funnel_get() == THR_FUNNEL_NULL)
  146                 panic("%s not under funnel", "spln()");
  147         return;
  148 }
  149 
  150 void
  151 splx(unsigned l)
  152 {
  153         if(thread_funnel_get() == THR_FUNNEL_NULL)
  154                 panic("%s not under funnel", "splx()");
  155        return;
  156 }
  157 
  158 void
  159 splon(unsigned l)
  160 {
  161         if(thread_funnel_get() == THR_FUNNEL_NULL)
  162                 panic("%s not under funnel", "splon()");
  163        return;
  164 }

Cache object: 84b6484ab3609b4ea895f50595d6175d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.