#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/conf.h>
#include <sys/proc.h>
#include <sys/vnode.h>
#include <sys/filio.h>
#include <sys/ttycom.h>
#include <sys/msgbuf.h>
#include <sys/signalvar.h>
#include <sys/kernel.h>
#include <sys/poll.h>
#include <sys/filedesc.h>
#include <sys/sysctl.h>
Go to the source code of this file.
|
| __FBSDID ("$FreeBSD$") |
|
static void | logtimeout (void *arg) |
|
static int | logkqread (struct knote *note, long hint) |
|
static void | logkqdetach (struct knote *note) |
|
| MTX_SYSINIT (msgbuf_lock, &msgbuf_lock, "msgbuf lock", MTX_DEF) |
|
| SYSCTL_INT (_kern, OID_AUTO, log_wakeups_per_second, CTLFLAG_RW, &log_wakeups_per_second, 0, "How often (times per second) to check for /dev/log waiters.") |
|
static int | logopen (struct cdev *dev, int flags, int mode, struct thread *td) |
|
static int | logclose (struct cdev *dev, int flag, int mode, struct thread *td) |
|
static int | logread (struct cdev *dev, struct uio *uio, int flag) |
|
static int | logpoll (struct cdev *dev, int events, struct thread *td) |
|
static int | logkqfilter (struct cdev *dev, struct knote *kn) |
|
static int | logioctl (struct cdev *dev, u_long com, caddr_t data, int flag, struct thread *td) |
|
static void | log_drvinit (void *unused) |
|
| SYSINIT (logdev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, log_drvinit, NULL) |
|
◆ LOG_ASYNC
◆ LOG_RDPRI
#define LOG_RDPRI (PZERO + 1) |
◆ __FBSDID()
◆ log_drvinit()
static void log_drvinit |
( |
void * |
unused | ) |
|
|
static |
◆ logclose()
static int logclose |
( |
struct cdev * |
dev, |
|
|
int |
flag, |
|
|
int |
mode, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ logioctl()
static int logioctl |
( |
struct cdev * |
dev, |
|
|
u_long |
com, |
|
|
caddr_t |
data, |
|
|
int |
flag, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ logkqdetach()
static void logkqdetach |
( |
struct knote * |
note | ) |
|
|
static |
◆ logkqfilter()
static int logkqfilter |
( |
struct cdev * |
dev, |
|
|
struct knote * |
kn |
|
) |
| |
|
static |
◆ logkqread()
static int logkqread |
( |
struct knote * |
note, |
|
|
long |
hint |
|
) |
| |
|
static |
◆ logopen()
static int logopen |
( |
struct cdev * |
dev, |
|
|
int |
flags, |
|
|
int |
mode, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ logpoll()
static int logpoll |
( |
struct cdev * |
dev, |
|
|
int |
events, |
|
|
struct thread * |
td |
|
) |
| |
|
static |
◆ logread()
static int logread |
( |
struct cdev * |
dev, |
|
|
struct uio * |
uio, |
|
|
int |
flag |
|
) |
| |
|
static |
◆ logtimeout()
static void logtimeout |
( |
void * |
arg | ) |
|
|
static |
Definition at line 233 of file subr_log.c.
References cv_broadcastpri(), LOG_ASYNC, log_open, LOG_RDPRI, log_wakeup, log_wakeups_per_second, logtimeout(), msgbuftrigger, pgsigio(), printf(), logsoftc::sc_callout, logsoftc::sc_selp, logsoftc::sc_sigio, logsoftc::sc_state, and selwakeuppri().
Referenced by logopen(), and logtimeout().
◆ MTX_SYSINIT()
MTX_SYSINIT |
( |
msgbuf_lock |
, |
|
|
& |
msgbuf_lock, |
|
|
"msgbuf lock" |
, |
|
|
MTX_DEF |
|
|
) |
| |
◆ SYSCTL_INT()
SYSCTL_INT |
( |
_kern |
, |
|
|
OID_AUTO |
, |
|
|
log_wakeups_per_second |
, |
|
|
CTLFLAG_RW |
, |
|
|
& |
log_wakeups_per_second, |
|
|
0 |
, |
|
|
"How often (times per second) to check for /dev/log waiters." |
|
|
) |
| |
◆ SYSINIT()
SYSINIT |
( |
logdev |
, |
|
|
SI_SUB_DRIVERS |
, |
|
|
SI_ORDER_MIDDLE |
, |
|
|
log_drvinit |
, |
|
|
NULL |
|
|
) |
| |
◆ log_cdevsw
Initial value:= {
.d_version = D_VERSION,
.d_name = "log",
}
static d_close_t logclose
static d_ioctl_t logioctl
static d_kqfilter_t logkqfilter
Definition at line 68 of file subr_log.c.
Referenced by log_drvinit().
◆ log_open
◆ log_read_filterops
struct filterops log_read_filterops |
|
static |
Initial value:= {
.f_isfd = 1,
.f_attach = NULL,
}
static void logkqdetach(struct knote *note)
static int logkqread(struct knote *note, long hint)
Definition at line 82 of file subr_log.c.
Referenced by logkqfilter().
◆ log_wakeup
◆ log_wakeups_per_second
int log_wakeups_per_second = 5 |
|
static |
◆ logclose
◆ logioctl
◆ logkqfilter
◆ logopen
◆ logpoll
◆ logread
◆ logsoftc
◆ msgbuf_lock
Definition at line 98 of file subr_log.c.
Referenced by log_drvinit(), logclose(), logioctl(), logkqdetach(), logkqfilter(), logkqread(), logopen(), logpoll(), logread(), sysctl_kern_msgbuf(), and sysctl_kern_msgbuf_clear().