File:  [GnuMach] / OSKit-Mach / oskit / kmsg.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed Sep 2 04:55:50 2020 UTC (5 years, 10 months ago) by root
Branches: MAIN, GNU
CVS tags: HEAD, Final-Commit
GNU OSKit-Mach

/* An oskit COM stream-based incarnation of the "kmsg" device.

   This is an oskit-based kernel logging device in the style of Linux's
   /proc/kmsg magical file.  It is the backend used for all logging output
   from oskit components.  */

#include "ds_oskit.h"

#include <oskit/com.h>
#include <oskit/com/charqueue.h>

#define KMSG_BUFSIZE	8192

oskit_stream_t *kmsg_stream;
unsigned int kmsg_readers;

void
kmsg_init (void)
{
  kmsg_stream = oskit_charqueue_create (KMSG_BUFSIZE,
					OSKIT_CHARQUEUE_FULL_REPLACE);
  assert (kmsg_stream);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.