[Click] function to shut down router in kernel mode

Erik VandeKieft evandeki at cs.ucsd.edu
Mon Oct 4 01:17:38 EDT 2004


OK thanks that's a start, but what about for code that isn't inside an
element? This is going inside an overloaded "new" because I'm doing my own
memory allocation and I've just run out of memory. If I just throw
std::bad_alloc, does the kernel thread come down cleanly?

--Erik

On Sun, 3 Oct 2004, Nikitas Liogkas wrote:

> You are probably looking for void Router::please_stop_driver(). You
> can just call it from within an Element like this:
> router()->please_stop_driver();
>
> Hope this helps...
>
> nikitas
>
> On Sun, 3 Oct 2004, Erik VandeKieft wrote:
>
> > Hi,
> >
> > Is there a function that I can call in kernel mode that will simply shut
> > the router down (and cleanly bring down the kernel thread)? I see that on
> > certain errors the code calls panic(), but I don't want to have to reboot.
> >
> > Thanks,
> > --Erik
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >
>


More information about the click mailing list