xref: /freebsd/sys/compat/linuxkpi/common/include/linux/bottom_half.h (revision 95ee2897e98f5d444f26ed2334cc7c439f9c16c6)
1ef23481aSHans Petter Selasky /*-
2ef23481aSHans Petter Selasky  * Copyright (c) 2017 Hans Petter Selasky
3ef23481aSHans Petter Selasky  * All rights reserved.
4ef23481aSHans Petter Selasky  *
5ef23481aSHans Petter Selasky  * Redistribution and use in source and binary forms, with or without
6ef23481aSHans Petter Selasky  * modification, are permitted provided that the following conditions
7ef23481aSHans Petter Selasky  * are met:
8ef23481aSHans Petter Selasky  * 1. Redistributions of source code must retain the above copyright
9ef23481aSHans Petter Selasky  *    notice unmodified, this list of conditions, and the following
10ef23481aSHans Petter Selasky  *    disclaimer.
11ef23481aSHans Petter Selasky  * 2. Redistributions in binary form must reproduce the above copyright
12ef23481aSHans Petter Selasky  *    notice, this list of conditions and the following disclaimer in the
13ef23481aSHans Petter Selasky  *    documentation and/or other materials provided with the distribution.
14ef23481aSHans Petter Selasky  *
15ef23481aSHans Petter Selasky  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16ef23481aSHans Petter Selasky  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17ef23481aSHans Petter Selasky  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18ef23481aSHans Petter Selasky  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19ef23481aSHans Petter Selasky  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20ef23481aSHans Petter Selasky  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21ef23481aSHans Petter Selasky  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22ef23481aSHans Petter Selasky  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23ef23481aSHans Petter Selasky  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24ef23481aSHans Petter Selasky  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25ef23481aSHans Petter Selasky  */
26*307f78f3SVladimir Kondratyev #ifndef _LINUXKPI_LINUX_BOTTOM_HALF_H_
27*307f78f3SVladimir Kondratyev #define	_LINUXKPI_LINUX_BOTTOM_HALF_H_
28ef23481aSHans Petter Selasky 
29ef23481aSHans Petter Selasky extern void local_bh_enable(void);
30ef23481aSHans Petter Selasky extern void local_bh_disable(void);
31ef23481aSHans Petter Selasky 
32*307f78f3SVladimir Kondratyev #endif					/* _LINUXKPI_LINUX_BOTTOM_HALF_H_ */
33