log.h revision 747cfc73193da6c99aeb06f23e70552319393cc4
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
#ifndef _SYS_LOG_H
#define _SYS_LOG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define LOG_CONSMIN 0 /* /dev/conslog minor */
#define LOG_LOGMINIDX 0 /* index of smallest /dev/log clone */
#define LOG_MINPS 0 /* min packet size */
struct log {
short log_inuse; /* is this log device open? */
int log_overflow; /* messages lost due to QFULL */
};
typedef struct log_zone {
} log_zone_t;
#define LOG_MSGSIZE 200
typedef struct log_dump {
/*
* log_ctl and message text follow here -- see dump_messages()
*/
} log_dump_t;
#ifdef _KERNEL
/* global zone variables */
extern log_zone_t log_global;
extern log_filter_t log_error;
extern log_filter_t log_trace;
extern log_filter_t log_console;
extern void log_init(void);
extern void log_enter(void);
extern void log_exit(void);
extern void log_freemsg(mblk_t *);
extern void log_flushq(queue_t *);
extern void log_printq(queue_t *);
extern void log_flushall();
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_LOG_H */