---
name: "ata_id_c_string"
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_id_c_string"
---

# ata\_id\_c\_string(9)

Convert IDENTIFY DEVICE page into C string

## NAME

ata\_id\_c\_string - Convert IDENTIFY DEVICE page into C string

## SYNOPSIS

**void ata\_id\_c\_string(const u16 \*** *id***, unsigned char \*** *s***, unsigned int** *ofs***, unsigned int** *len***);**

## ARGUMENTS

*id*

IDENTIFY DEVICE results we will examine

*s*

string into which data is output

*ofs*

offset into identify device page

*len*

length of string to return. must be an odd number.

## DESCRIPTION

This function is identical to ata\_id\_string except that it trims trailing spaces and terminates the resulting string with null. *len* must be actual maximum length (even number) + 1.

LOCKING: caller.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
