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

# ata\_dev\_same\_device(9)

Determine whether new ID matches configured device

## NAME

ata\_dev\_same\_device - Determine whether new ID matches configured device

## SYNOPSIS

**int ata\_dev\_same\_device(struct ata\_device \*** *dev***, unsigned int** *new\_class***, const u16 \*** *new\_id***);**

## ARGUMENTS

*dev*

device to compare against

*new\_class*

class of the new device

*new\_id*

IDENTIFY page of the new device

## DESCRIPTION

Compare *new\_class* and *new\_id* against *dev* and determine whether *dev* is the device indicated by *new\_class* and *new\_id*.

LOCKING: None.

## RETURN

1 if *dev* matches *new\_class* and *new\_id*, 0 otherwise.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
