---
name: "sas_port_add_phy"
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_port_add_phy"
---

# sas\_port\_add\_phy(9)

add another phy to a port to form a wide port

## NAME

sas\_port\_add\_phy - add another phy to a port to form a wide port

## SYNOPSIS

**void sas\_port\_add\_phy(struct sas\_port \*** *port***, struct sas\_phy \*** *phy***);**

## ARGUMENTS

*port*

port to add the phy to

*phy*

phy to add

## DESCRIPTION

When a port is initially created, it is empty (has no phys). All ports must have at least one phy to operated, and all wide ports must have at least two. The current code makes no difference between ports and wide ports, but the only object that can be connected to a remote device is a port, so ports must be formed on all devices with phys if they're connected to anything.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
