![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* Syslog internals 0003 * 0004 * Copyright 2010 Canonical, Ltd. 0005 * Author: Kees Cook <kees.cook@canonical.com> 0006 */ 0007 0008 #ifndef _LINUX_SYSLOG_H 0009 #define _LINUX_SYSLOG_H 0010 0011 /* Close the log. Currently a NOP. */ 0012 #define SYSLOG_ACTION_CLOSE 0 0013 /* Open the log. Currently a NOP. */ 0014 #define SYSLOG_ACTION_OPEN 1 0015 /* Read from the log. */ 0016 #define SYSLOG_ACTION_READ 2 0017 /* Read all messages remaining in the ring buffer. */ 0018 #define SYSLOG_ACTION_READ_ALL 3 0019 /* Read and clear all messages remaining in the ring buffer */ 0020 #define SYSLOG_ACTION_READ_CLEAR 4 0021 /* Clear ring buffer. */ 0022 #define SYSLOG_ACTION_CLEAR 5 0023 /* Disable printk's to console */ 0024 #define SYSLOG_ACTION_CONSOLE_OFF 6 0025 /* Enable printk's to console */ 0026 #define SYSLOG_ACTION_CONSOLE_ON 7 0027 /* Set level of messages printed to console */ 0028 #define SYSLOG_ACTION_CONSOLE_LEVEL 8 0029 /* Return number of unread characters in the log buffer */ 0030 #define SYSLOG_ACTION_SIZE_UNREAD 9 0031 /* Return size of the log buffer */ 0032 #define SYSLOG_ACTION_SIZE_BUFFER 10 0033 0034 #define SYSLOG_FROM_READER 0 0035 #define SYSLOG_FROM_PROC 1 0036 0037 int do_syslog(int type, char __user *buf, int count, int source); 0038 0039 #endif /* _LINUX_SYSLOG_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |