[haiku-development] Re: [PATCH 1/4] Allow non-interactive execution of KDL commands

  • From: Jan Klötzke <jan.kloetzke@xxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Thu, 26 Jun 2008 22:48:15 +0200

"Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx> wrote:
> Jan Klötzke <jan.kloetzke@xxxxxxxxxx> wrote:
> > * Add kernel_debugger_exec() which allows to execute a single command
> > * The optional parameter "halt" specifies if all other CPU's should
> > be halted
> >   while executing the KDL command
> > * Route the output of the non-interactive command to syslog too
> > commands to the
> >   syslog
>
> Pardon my ignorance, but could you explain the purpose of these
> patches? :-)

Sure. :-) Currently it's not possible to execute a KDL statement from another 
driver, you can just enter the debugger and the _user_ has to enter some 
commands. Therefore I added kernel_debugger_exec() which executes a single 
KDL statement and returns. This is supposed to be used by the emergency 
module.

Additionally the output of these executed statements is routed to syslog too 
which is also not the default.

/Jan

Other related posts: