---
name: "sas_phy_alloc"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/sas_phy_alloc"
---

# sas\_phy\_alloc(9)

allocates and initialize a SAS PHY structure

## NAME

sas\_phy\_alloc - allocates and initialize a SAS PHY structure

## SYNOPSIS

**struct sas\_phy \* sas\_phy\_alloc(struct device \*** *parent***, int** *number***);**

## ARGUMENTS

*parent*

Parent device

*number*

Phy index

## DESCRIPTION

Allocates an SAS PHY structure. It will be added in the device tree below the device specified by *parent*, which has to be either a Scsi\_Host or sas\_rphy.

## RETURN

SAS PHY allocated or **NULL** if the allocation failed.

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

Author.

**Rob Landley** \<rob@landley.net\>

Author.

## COPYRIGHT
