'\" t .\" Title: sync_file_create .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Device drivers infrastructure .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "SYNC_FILE_CREATE" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Device drivers infrastructure" .\" ----------------------------------------------------------------- .\" * 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" sync_file_create \- creates a sync file .SH "SYNOPSIS" .HP \w'struct\ sync_file\ *\ sync_file_create('u .BI "struct sync_file * sync_file_create(struct\ fence\ *\ " "fence" ");" .SH "ARGUMENTS" .PP \fIfence\fR .RS 4 fence to add to the sync_fence .RE .SH "DESCRIPTION" .PP Creates a sync_file containg \fIfence\fR\&. Once this is called, the sync_file takes ownership of \fIfence\fR\&. The sync_file can be released with fput(sync_file\->file)\&. Returns the sync_file or NULL in case of error\&. .SH "COPYRIGHT" .br