Subject: Re: question on device detachment
To: Jaromir Dolecek <jdolecek@netbsd.org>
From: Ferry Sutanto <fsutanto@yahoo.com>
List: tech-kern
Date: 10/22/2001 14:39:56
The ps is crashing.
Here is my function which handles the thread.
void
cl_pd67xx_event_thread()
{
for(;;) {
(void) tsleep(&cl_attr, PRIBIO,
"cl_pd67xx_event_wait", 0);
printf("handling cl_pd67xx_event_thread\n");
if (last_action_in == 1) {
printf("event-thread attaching\n");
isaattach2();
} else {
printf("event-thread detaching\n");
isadetach();
}
}
}
Ferry
--- Jaromir Dolecek <jdolecek@netbsd.org> wrote:
> Ferry Sutanto wrote:
> > Does anybody know why the kernel keep crashing
> > whenever I issued command "ps -awwx" ? I called
> > kthread_create to create the kernel thread, and I
> have
> > tsleep for the thread handler. I must have been
> > missing something.
>
> Is it kernel crashing, or ps crashing?
> What have you used as a wmesg for the tsleep?
>
> Jaromir
> --
> Jaromir Dolecek <jdolecek@NetBSD.org>
> http://www.NetBSD.org/Ports/i386/ps2.html
> -= Those who would give up liberty for a little
> temporary safety deserve =-
> -= neither liberty nor safety, and will lose both.
> -- Benjamin Franklin =-
__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com