Annotation of coherent/d/kernel/USRSRC/ker/elog.c, revision 1.1

1.1     ! root        1: /* $Header: /usr/src/sys/ker/RCS/elog.c,v 1.1 88/03/24 16:19:48 src Exp $ */
        !             2: /* (lgl-
        !             3:  *     The information contained herein is a trade secret of Mark Williams
        !             4:  *     Company, and  is confidential information.  It is provided  under a
        !             5:  *     license agreement,  and may be  copied or disclosed  only under the
        !             6:  *     terms of  that agreement.  Any  reproduction or disclosure  of this
        !             7:  *     material without the express written authorization of Mark Williams
        !             8:  *     Company or persuant to the license agreement is unlawful.
        !             9:  *
        !            10:  *     COHERENT Version 2.3.37
        !            11:  *     Copyright (c) 1982, 1983, 1984.
        !            12:  *     An unpublished work by Mark Williams Company, Chicago.
        !            13:  *     All rights reserved.
        !            14:  -lgl) */
        !            15: /*
        !            16:  * Coherent - event/error logging facility.
        !            17:  *
        !            18:  * $Log:       /usr/src/sys/ker/RCS/elog.c,v $
        !            19:  * Revision 1.1        88/03/24  16:19:48      src
        !            20:  * Initial revision
        !            21:  * 
        !            22:  */
        !            23: #include <coherent.h>
        !            24: 
        !            25: #define NEVENT 256
        !            26: typedef struct {
        !            27:        char    *e_event;       /* Function pointer or whatever */
        !            28:        int     e_time;         /* Timer tick of event */
        !            29: } EVENT;
        !            30: 
        !            31: EVENT events[NEVENT];
        !            32: unsigned curevent = 0;
        !            33: unsigned totevent = 0;
        !            34: 
        !            35: elog(eventp)
        !            36: char *eventp;
        !            37: {
        !            38:        register EVENT *ep;
        !            39: 
        !            40:        totevent += 1;
        !            41:        ep = &events[curevent++];
        !            42:        curevent %= NEVENT;
        !            43:        ep->e_event = eventp;
        !            44:        ep->e_time = timer.t_time;
        !            45: }

unix.superglobalmegacorp.com

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