2005-04-21 16:53:53 +02:00
|
|
|
/* This file contains information dump procedures. During the initialization
|
|
|
|
* of the Information Service 'known' function keys are registered at the TTY
|
|
|
|
* server in order to receive a notification if one is pressed. Here, the
|
|
|
|
* corresponding dump procedure is called.
|
|
|
|
*
|
|
|
|
* The entry points into this file are
|
|
|
|
* handle_fkey: handle a function key pressed notification
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "is.h"
|
|
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*
|
|
|
|
* handle_fkey *
|
|
|
|
*===========================================================================*/
|
|
|
|
PUBLIC int do_fkey_pressed(message *m)
|
|
|
|
{
|
2005-05-26 15:17:57 +02:00
|
|
|
if (F1 <= m->NOTIFY_ARG && m->NOTIFY_ARG <= F12) {
|
|
|
|
switch(m->NOTIFY_ARG) {
|
2005-04-21 16:53:53 +02:00
|
|
|
case F1: proctab_dmp(); break;
|
|
|
|
case F2: memmap_dmp(); break;
|
|
|
|
case F3: image_dmp(); break;
|
|
|
|
case F4: sendmask_dmp(); break;
|
|
|
|
case F5: monparams_dmp(); break;
|
|
|
|
case F6: irqtab_dmp(); break;
|
|
|
|
case F7: kmessages_dmp(); break;
|
2005-06-07 16:43:35 +02:00
|
|
|
|
2005-04-29 17:36:43 +02:00
|
|
|
case F10: kenv_dmp(); break;
|
2005-06-17 11:13:32 +02:00
|
|
|
case F11: timing_dmp(); break;
|
2005-04-21 16:53:53 +02:00
|
|
|
case F12: sched_dmp(); break;
|
|
|
|
default:
|
2005-05-26 15:17:57 +02:00
|
|
|
printf("IS: unhandled notify for F%d (code %d)\n",
|
2005-05-27 14:44:14 +02:00
|
|
|
m->NOTIFY_FLAGS, m->NOTIFY_ARG);
|
2005-06-03 15:55:06 +02:00
|
|
|
}
|
|
|
|
}
|
2005-06-07 16:43:35 +02:00
|
|
|
|
2005-06-03 15:55:06 +02:00
|
|
|
if (SF1 <= m->NOTIFY_ARG && m->NOTIFY_ARG <= SF12) {
|
|
|
|
switch(m->NOTIFY_ARG) {
|
2005-06-07 16:43:35 +02:00
|
|
|
|
|
|
|
case SF1: mproc_dmp(); break;
|
|
|
|
|
|
|
|
case SF3: fproc_dmp(); break;
|
|
|
|
case SF4: dtab_dmp(); break;
|
|
|
|
|
|
|
|
case SF6: diagnostics_dmp(); break;
|
2005-06-03 15:55:06 +02:00
|
|
|
default:
|
|
|
|
printf("IS: unhandled notify for Shift-F%d (code %d)\n",
|
|
|
|
m->NOTIFY_FLAGS, m->NOTIFY_ARG);
|
2005-04-21 16:53:53 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
return(EDONTREPLY);
|
|
|
|
}
|
|
|
|
|