Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../data-stud/../../usr/man/man9f/strlog.9f
Real path: /usr/share/man/man9f/strlog.9f
Zurück
'\" te .\" Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. .\" Copyright (c) 2006, AT&T. All rights reserved. .TH strlog 9F "16 Jan 2006" "Oracle Solaris 11.4" "Kernel Functions" .SH NAME strlog \- submit messages to the log driver .SH SYNOPSIS .LP .nf #include <sys/stream.h> #include <sys/strlog.h> #include <sys/log.h> \fBint\fR \fBstrlog\fR(\fBshort\fR \fImid\fR, \fBshort\fR \fIsid\fR, \fBchar\fR \fIlevel\fR, \fBunsigned short\fR \fIflags\fR, \fBchar *\fR\fIfmt\fR, ...); .fi .SH INTERFACE LEVEL .sp .LP Architecture independent level 1 (DDI/DKI). .SH PARAMETERS .sp .ne 2 .mk .na \fB\fImid\fR\fR .ad .RS 9n .rt Identification number of the module or driver submitting the message (in the case of a module, its \fBmi_idnum\fR value from \fBmodule_info\fR(9S)). .RE .sp .ne 2 .mk .na \fB\fIsid\fR\fR .ad .RS 9n .rt Identification number for a particular minor device. .RE .sp .ne 2 .mk .na \fB\fIlevel\fR\fR .ad .RS 9n .rt Tracing level for selective screening of low priority messages. Larger values imply less important information. .RE .sp .ne 2 .mk .na \fB\fIflags\fR\fR .ad .RS 9n .rt Valid flag values are: .sp .ne 2 .mk .na \fB\fBSL_ERROR\fR\fR .ad .RS 14n .rt Message is for error logger. .RE .sp .ne 2 .mk .na \fB\fBSL_TRACE\fR\fR .ad .RS 14n .rt Message is for trace. .RE .sp .ne 2 .mk .na \fB\fBSL_NOTIFY\fR\fR .ad .RS 14n .rt Mail copy of message to system administrator. .RE .sp .ne 2 .mk .na \fB\fBSL_CONSOLE\fR\fR .ad .RS 14n .rt Log message to console. .RE .sp .ne 2 .mk .na \fB\fBSL_FATAL\fR\fR .ad .RS 14n .rt Error is fatal. .RE .sp .ne 2 .mk .na \fB\fBSL_WARN\fR\fR .ad .RS 14n .rt Error is a warning. .RE .sp .ne 2 .mk .na \fB\fBSL_NOTE\fR\fR .ad .RS 14n .rt Error is a notice. .RE .RE .sp .ne 2 .mk .na \fB\fIfmt\fR\fR .ad .RS 9n .rt \fBprintf\fR(3C) style format string. \fB%e\fR, \fB%g\fR, and \fB%G\fR formats are not allowed but \fB%s\fR is supported. .RE .SH DESCRIPTION .sp .LP The \fBstrlog()\fR function expands the \fBprintf\fR(3C) style format string passed to it, that is, the conversion specifiers are replaced by the actual argument values in the format string. The 32-bit representations of the arguments (up to \fBNLORGARGS\fR) follow the string starting at the next 32-bit boundary following the string. Note that the 64-bit argument will be truncated to 32-bits here but will be fully represented in the string. .sp .LP The messages can be retrieved with the \fBgetmsg\fR(2) system call. The \fIflags\fR argument specifies the type of the message and where it is to be sent. \fBstrace\fR(8) receives messages from the \fBlog\fR driver and sends them to the standard output. \fBstrerr\fR(8) receives error messages from the \fBlog\fR driver and appends them to a file called \fB/var/adm/streams/error.\fR\fImm-dd\fR, where \fImm-dd\fR identifies the date of the error message. .SH RETURN VALUES .sp .LP The \fBstrlog()\fR function returns \fB0\fR if it fails to submit the message to the \fBlog\fR(4D) driver and \fB1\fR otherwise. .SH CONTEXT .sp .LP The \fBstrlog()\fR function can be called from user, interrupt, or kernel context. .SH FILES .sp .ne 2 .mk .na \fB\fB/var/adm/streams/error.\fR\fImm-dd\fR\fR .ad .br .sp .6 .RS 4n Error messages dated \fImm-dd\fR appended by \fBstrerr\fR(8) from the \fBlog\fR driver .RE .SH SEE ALSO .sp .LP \fBgetmsg\fR(2), \fBlog\fR(4D), \fBstrace\fR(8), \fBstrerr\fR(8), \fBmodule_info\fR(9S) .sp .LP \fIWriting Device Drivers in Oracle Solaris 11.4\fR .sp .LP \fISTREAMS Programming Guide\fR