geom_kern.c (e805e8f0e8f9f762bfb5bffd72380a1b101b1a8b) | geom_kern.c (b1876192f015b1cf392b52b82b124265fc9683a7) |
---|---|
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 --- 35 unchanged lines hidden (view full) --- 44#include <sys/proc.h> 45#include <sys/kthread.h> 46#include <sys/lock.h> 47#include <sys/mutex.h> 48#include <sys/sx.h> 49#include <sys/sbuf.h> 50#include <sys/errno.h> 51#include <geom/geom.h> | 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 --- 35 unchanged lines hidden (view full) --- 44#include <sys/proc.h> 45#include <sys/kthread.h> 46#include <sys/lock.h> 47#include <sys/mutex.h> 48#include <sys/sx.h> 49#include <sys/sbuf.h> 50#include <sys/errno.h> 51#include <geom/geom.h> |
52#include <geom/geom_int.h> |
|
52 53MALLOC_DEFINE(M_GEOM, "GEOM", "Geom data structures"); 54 55struct sx topology_lock; 56 57static struct proc *g_up_proc; 58 59int g_debugflags; --- 42 unchanged lines hidden (view full) --- 102 &g_down_proc, 103}; 104 105static struct proc *g_event_proc; 106 107static void 108g_event_procbody(void) 109{ | 53 54MALLOC_DEFINE(M_GEOM, "GEOM", "Geom data structures"); 55 56struct sx topology_lock; 57 58static struct proc *g_up_proc; 59 60int g_debugflags; --- 42 unchanged lines hidden (view full) --- 103 &g_down_proc, 104}; 105 106static struct proc *g_event_proc; 107 108static void 109g_event_procbody(void) 110{ |
110 struct proc *p = g_event_proc; 111 struct thread *tp = &p->p_xxthread; | |
112 113 curthread->td_base_pri = PRIBIO; 114 for(;;) { | 111 112 curthread->td_base_pri = PRIBIO; 113 for(;;) { |
115 g_run_events(tp); | 114 g_run_events(); |
116 mtx_lock(&Giant); 117 tsleep(&g_wait_event, PRIBIO, "g_events", hz/10); 118 mtx_unlock(&Giant); 119 } 120} 121 122struct kproc_desc g_event_kp = { 123 "g_event", --- 69 unchanged lines hidden --- | 115 mtx_lock(&Giant); 116 tsleep(&g_wait_event, PRIBIO, "g_events", hz/10); 117 mtx_unlock(&Giant); 118 } 119} 120 121struct kproc_desc g_event_kp = { 122 "g_event", --- 69 unchanged lines hidden --- |