--- /u/canon/cvs/chos/kernel/chos_lkm.c 2004-06-10 15:15:19.000000000 -0700 +++ chos_lkm.c 2004-06-14 17:31:42.000000000 -0700 @@ -86,7 +86,6 @@ #define MOD_DEC /* nop */ module_param(debug, int,0); module_param(table, long,0); -#define PID_MAX PID_MAX_DEFAULT #else #define MOD_INC MOD_INC_USE_COUNT #define MOD_DEC MOD_DEC_USE_COUNT @@ -96,6 +95,10 @@ MODULE_PARM_DESC(table, "Memory location of table from save state"); #endif +#ifdef PID_MAX_DEFAULT +#define PID_MAX PID_MAX_DEFAULT +#endif + #ifdef MODULE_VERSION MODULE_VERSION(MY_MODULE_VERSION); #endif @@ -211,7 +214,9 @@ struct task_struct *t; for (i=0;ipid_max;i++){ + write_lock_irq(&tasklist_lock); t=find_task_by_pid(i); + write_unlock_irq(&tasklist_lock); if (ch->procs[i].link!=NULL && t==NULL){ reset_link(&(ch->procs[i])); count++; --- /u/canon/cvs/chos/kernel/chos.h 2004-06-02 11:19:30.000000000 -0700 +++ ./chos.h 2004-06-10 19:00:47.000000000 -0700 @@ -31,7 +31,7 @@ #define KERN26 #define PARENT parent #else -#define PARENT p_opptr +#define PARENT parent #endif // Version 1 chos data structures