'\" t .\" Title: ata_host_register .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: libata Library .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "ATA_HOST_REGISTER" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "libata Library" .\" ----------------------------------------------------------------- .\" * 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" ata_host_register \- register initialized ATA host .SH "SYNOPSIS" .HP \w'int\ ata_host_register('u .BI "int ata_host_register(struct\ ata_host\ *\ " "host" ", struct\ scsi_host_template\ *\ " "sht" ");" .SH "ARGUMENTS" .PP \fIhost\fR .RS 4 ATA host to register .RE .PP \fIsht\fR .RS 4 template for SCSI host .RE .SH "DESCRIPTION" .PP Register initialized ATA host\&. \fIhost\fR is allocated using \fBata_host_alloc\fR and fully initialized by LLD\&. This function starts ports, registers \fIhost\fR with ATA and SCSI layers and probe registered devices\&. .PP LOCKING: Inherited from calling layer (may sleep)\&. .SH "RETURN" .PP 0 on success, \-errno otherwise\&. .SH "AUTHOR" .PP \fBJeff Garzik\fR .RS 4 Author. .RE .SH "COPYRIGHT" .br