linux/include/linux/syslog.h

/* SPDX-License-Identifier: GPL-2.0-or-later */
/*  Syslog internals
 *
 *  Copyright 2010 Canonical, Ltd.
 *  Author: Kees Cook <[email protected]>
 */

#ifndef _LINUX_SYSLOG_H
#define _LINUX_SYSLOG_H

#include <linux/wait.h>

/* Close the log.  Currently a NOP. */
#define SYSLOG_ACTION_CLOSE
/* Open the log. Currently a NOP. */
#define SYSLOG_ACTION_OPEN
/* Read from the log. */
#define SYSLOG_ACTION_READ
/* Read all messages remaining in the ring buffer. */
#define SYSLOG_ACTION_READ_ALL
/* Read and clear all messages remaining in the ring buffer */
#define SYSLOG_ACTION_READ_CLEAR
/* Clear ring buffer. */
#define SYSLOG_ACTION_CLEAR
/* Disable printk's to console */
#define SYSLOG_ACTION_CONSOLE_OFF
/* Enable printk's to console */
#define SYSLOG_ACTION_CONSOLE_ON
/* Set level of messages printed to console */
#define SYSLOG_ACTION_CONSOLE_LEVEL
/* Return number of unread characters in the log buffer */
#define SYSLOG_ACTION_SIZE_UNREAD
/* Return size of the log buffer */
#define SYSLOG_ACTION_SIZE_BUFFER

#define SYSLOG_FROM_READER
#define SYSLOG_FROM_PROC

int do_syslog(int type, char __user *buf, int count, int source);
extern wait_queue_head_t log_wait;

#endif /* _LINUX_SYSLOG_H */