'\" t .\" Title: function::kernel_buffer_quoted_error .\" Author: .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: November 2020 .\" Manual: String and data retrieving functions Tapset .\" Source: SystemTap Tapset Reference .\" Language: English .\" .TH "FUNCTION::KERNEL_BUF" "3stap" "November 2020" "SystemTap Tapset Reference" "String and data retrieving fun" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" function::kernel_buffer_quoted_error \- Retrieves and quotes buffer from kernel space .SH "SYNOPSIS" .sp .nf kernel_buffer_quoted_error:string(addr:long,inlen:long,outlen:long) .fi .SH "ARGUMENTS" .PP \fIaddr\fR .RS 4 the kernel space address to retrieve the buffer from .RE .PP \fIinlen\fR .RS 4 the exact length of the buffer to read .RE .PP \fIoutlen\fR .RS 4 the maximum length of the output string .RE .SH "DESCRIPTION" .PP Reads inlen characters of a buffer from the given kernel space memory address, and returns up to outlen characters, where any ASCII characters that are not printable are replaced by the corresponding escape sequence in the returned string\&. Note that the string will be surrounded by double quotes\&. On the rare cases when kernel space data is not accessible at the given address, an error is thrown\&. .SH SEE ALSO\n .IR tapset::conversions (3stap)