kernel.h (31234) | kernel.h (31675) |
---|---|
1/*- 2 * Copyright (c) 1995 Terrence R. Lambert 3 * All rights reserved. 4 * 5 * Copyright (c) 1990, 1993 6 * The Regents of the University of California. All rights reserved. 7 * (c) UNIX System Laboratories, Inc. 8 * All or some portions of this file are derived from material licensed --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * @(#)kernel.h 8.3 (Berkeley) 1/21/94 | 1/*- 2 * Copyright (c) 1995 Terrence R. Lambert 3 * All rights reserved. 4 * 5 * Copyright (c) 1990, 1993 6 * The Regents of the University of California. All rights reserved. 7 * (c) UNIX System Laboratories, Inc. 8 * All or some portions of this file are derived from material licensed --- 25 unchanged lines hidden (view full) --- 34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 39 * SUCH DAMAGE. 40 * 41 * @(#)kernel.h 8.3 (Berkeley) 1/21/94 |
42 * $Id: kernel.h,v 1.34 1997/09/21 22:09:11 gibbs Exp $ | 42 * $Id: kernel.h,v 1.35 1997/11/18 07:23:40 bde Exp $ |
43 */ 44 45#ifndef _SYS_KERNEL_H_ 46#define _SYS_KERNEL_H_ 47 48#ifdef KERNEL 49 50/* Global variables for the kernel. */ --- 144 unchanged lines hidden (view full) --- 195 196/* 197 * System initialization call types; currently two are supported... one 198 * to do a simple function call and one to cause a process to be started 199 * by the kernel on the callers behalf. 200 */ 201typedef enum sysinit_elem_type { 202 SI_TYPE_DEFAULT = 0x00000000, /* No special processing*/ | 43 */ 44 45#ifndef _SYS_KERNEL_H_ 46#define _SYS_KERNEL_H_ 47 48#ifdef KERNEL 49 50/* Global variables for the kernel. */ --- 144 unchanged lines hidden (view full) --- 195 196/* 197 * System initialization call types; currently two are supported... one 198 * to do a simple function call and one to cause a process to be started 199 * by the kernel on the callers behalf. 200 */ 201typedef enum sysinit_elem_type { 202 SI_TYPE_DEFAULT = 0x00000000, /* No special processing*/ |
203 SI_TYPE_KTHREAD = 0x00000001 /* start kernel thread*/ | 203 SI_TYPE_KTHREAD = 0x00000001, /* start kernel thread*/ 204 SI_TYPE_KPROCESS = 0x00000002 /* start kernel process*/ |
204} si_elem_t; 205 206 207/* 208 * A system initialization call instance 209 * 210 * The subsystem 211 */ --- 28 unchanged lines hidden (view full) --- 240 subsystem, \ 241 order, \ 242 func, \ 243 ident, \ 244 SI_TYPE_KTHREAD \ 245 }; \ 246 DATA_SET(sysinit_set,uniquifier ## _sys_init); 247 | 205} si_elem_t; 206 207 208/* 209 * A system initialization call instance 210 * 211 * The subsystem 212 */ --- 28 unchanged lines hidden (view full) --- 241 subsystem, \ 242 order, \ 243 func, \ 244 ident, \ 245 SI_TYPE_KTHREAD \ 246 }; \ 247 DATA_SET(sysinit_set,uniquifier ## _sys_init); 248 |
249#define SYSINIT_KP(uniquifier, subsystem, order, func, ident) \ 250 static struct sysinit uniquifier ## _sys_init = { \ 251 subsystem, \ 252 order, \ 253 func, \ 254 ident, \ 255 SI_TYPE_KPROCESS \ 256 }; \ 257 DATA_SET(sysinit_set,uniquifier ## _sys_init); |
|
248 | 258 |
259 |
|
249/* 250 * A kernel process descriptor; used to start "internal" daemons 251 * 252 * Note: global_procpp may be NULL for no global save area 253 */ 254struct kproc_desc { 255 char *arg0; /* arg 0 (for 'ps' listing)*/ 256 void (*func) __P((void)); /* "main" for kernel process*/ --- 43 unchanged lines hidden --- | 260/* 261 * A kernel process descriptor; used to start "internal" daemons 262 * 263 * Note: global_procpp may be NULL for no global save area 264 */ 265struct kproc_desc { 266 char *arg0; /* arg 0 (for 'ps' listing)*/ 267 void (*func) __P((void)); /* "main" for kernel process*/ --- 43 unchanged lines hidden --- |