---
name: "cable_is_40wire"
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/cable_is_40wire"
---

# cable\_is\_40wire(9)

40/80/SATA decider

## NAME

cable\_is\_40wire - 40/80/SATA decider

## SYNOPSIS

**int cable\_is\_40wire(struct ata\_port \*** *ap***);**

## ARGUMENTS

*ap*

port to consider

## DESCRIPTION

This function encapsulates the policy for speed management in one place. At the moment we don't cache the result but there is a good case for setting ap-\>cbl to the result when we are called with unknown cables (and figuring out if it impacts hotplug at all).

Return 1 if the cable appears to be 40 wire.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
