'\" t .\" Title: sas_phy_alloc .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: July 2017 .\" Manual: SCSI mid layer .\" Source: Kernel Hackers Manual 4.12.2 .\" Language: English .\" .TH "SAS_PHY_ALLOC" "9" "July 2017" "Kernel Hackers Manual 4\&.12\&" "SCSI mid layer" .\" ----------------------------------------------------------------- .\" * 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" sas_phy_alloc \- allocates and initialize a SAS PHY structure .SH "SYNOPSIS" .HP \w'struct\ sas_phy\ *\ sas_phy_alloc('u .BI "struct sas_phy * sas_phy_alloc(struct\ device\ *\ " "parent" ", int\ " "number" ");" .SH "ARGUMENTS" .PP \fIstruct device * parent\fR .RS 4 Parent device .RE .PP \fIint number\fR .RS 4 Phy index .RE .SH "DESCRIPTION" .PP Allocates an SAS PHY structure\&. It will be added in the device tree below the device specified by \fIparent\fR, which has to be either a Scsi_Host or sas_rphy\&. .SH "RETURN" .PP SAS PHY allocated or \fBNULL\fR if the allocation failed\&. .SH "AUTHORS" .PP \fBJames Bottomley\fR <\&James.Bottomley@hansenpartnership.com\&> .RS 4 Author. .RE .PP \fBRob Landley\fR <\&rob@landley.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br