The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/drivers/log/log.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* Includes. */
    2 #include "../drivers.h"
    3 #include "../libdriver/driver.h"
    4 #include <minix/type.h>
    5 #include <minix/const.h>
    6 #include <minix/com.h>
    7 #include <sys/types.h>
    8 #include <minix/ipc.h>
    9 
   10 /* Constants and types. */
   11 
   12 #define LOG_SIZE        (50*1024) 
   13 #define SUSPENDABLE           1
   14 
   15 struct logdevice {
   16         char log_buffer[LOG_SIZE];
   17         int     log_size,       /* no. of bytes in log buffer */
   18                 log_read,       /* read mark */
   19                 log_write;      /* write mark */
   20 #if SUSPENDABLE
   21         int log_proc_nr,
   22                 log_source,
   23                 log_iosize,
   24                 log_revive_alerted,
   25                 log_status;     /* proc that is blocking on read */
   26         vir_bytes log_user_vir;
   27 #endif
   28         int     log_selected, log_select_proc,
   29                 log_select_alerted, log_select_ready_ops;
   30 };
   31 
   32 /* Function prototypes. */
   33 _PROTOTYPE( void kputc, (int c)                                         );
   34 _PROTOTYPE( int do_new_kmess, (message *m)                              );
   35 _PROTOTYPE( int do_diagnostics, (message *m)                            );
   36 _PROTOTYPE( void log_append, (char *buf, int len)                               );
   37 

Cache object: 679ca1dc0bfd7970ac438242f29a14b3


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.