1/*- 2 * Copyright (c) 2002 Poul-Henning Kamp 3 * Copyright (c) 2002 Networks Associates Technology, Inc. 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Poul-Henning Kamp 7 * and NAI Labs, the Security Research Division of Network Associates, Inc. 8 * under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 20 unchanged lines hidden (view full) --- 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/geom/geom_kern.c 141624 2005-02-10 12:10:35Z phk $"); |
38 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/kernel.h> 42#include <sys/eventhandler.h> 43#include <sys/malloc.h> 44#include <sys/bio.h> 45#include <sys/sysctl.h> --- 45 unchanged lines hidden (view full) --- 91 mtx_lock_spin(&sched_lock); 92 sched_prio(tp, PRIBIO); 93 mtx_unlock_spin(&sched_lock); 94 for(;;) { 95 g_io_schedule_up(tp); 96 } 97} 98 |
99static struct kproc_desc g_up_kp = { |
100 "g_up", 101 g_up_procbody, 102 &g_up_proc, 103}; 104 105static struct proc *g_down_proc; 106 107static void --- 6 unchanged lines hidden (view full) --- 114 mtx_lock_spin(&sched_lock); 115 sched_prio(tp, PRIBIO); 116 mtx_unlock_spin(&sched_lock); 117 for(;;) { 118 g_io_schedule_down(tp); 119 } 120} 121 |
122static struct kproc_desc g_down_kp = { |
123 "g_down", 124 g_down_procbody, 125 &g_down_proc, 126}; 127 128static struct proc *g_event_proc; 129 130static void --- 116 unchanged lines hidden --- |