8fea5ab8bd
The set of processes to which a SIGKMESS signal is sent whenever new diagnostics messages are added to the kernel's message buffer, is now no longer hardcoded. Instead, processes can (un)register themselves to receive such notifications, by means of sys_diagctl(). Change-Id: I9d6ac006a5d9bbfad2757587a068fc1ec3cc083e
13 lines
205 B
C
13 lines
205 B
C
|
|
#include "syslib.h"
|
|
|
|
int sys_diagctl(int code, char *arg1, int arg2)
|
|
{
|
|
message m;
|
|
|
|
m.DIAGCTL_CODE = code;
|
|
m.DIAGCTL_ARG1 = arg1;
|
|
m.DIAGCTL_ARG2 = arg2;
|
|
|
|
return(_kernel_call(SYS_DIAGCTL, &m));
|
|
}
|