'\" t .\" Title: relay_file_read_start_pos .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: relay interface support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "RELAY_FILE_READ_STAR" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "relay interface support" .\" ----------------------------------------------------------------- .\" * 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" relay_file_read_start_pos \- find the first available byte to read .SH "SYNOPSIS" .HP \w'size_t\ relay_file_read_start_pos('u .BI "size_t relay_file_read_start_pos(size_t\ " "read_pos" ", struct\ rchan_buf\ *\ " "buf" ");" .SH "ARGUMENTS" .PP \fIread_pos\fR .RS 4 file read position .RE .PP \fIbuf\fR .RS 4 relay channel buffer .RE .SH "DESCRIPTION" .PP If the \fIread_pos\fR is in the middle of padding, return the position of the first actually available byte, otherwise return the original value\&. .SH "COPYRIGHT" .br