---
name: "ata_dev_init_params"
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_init_params"
---

# ata\_dev\_init\_params(9)

Issue INIT DEV PARAMS command

## NAME

ata\_dev\_init\_params - Issue INIT DEV PARAMS command

## SYNOPSIS

**unsigned int ata\_dev\_init\_params(struct ata\_device \*** *dev***, u16** *heads***, u16** *sectors***);**

## ARGUMENTS

*dev*

Device to which command will be sent

*heads*

Number of heads (taskfile parameter)

*sectors*

Number of sectors (taskfile parameter)

## DESCRIPTION

LOCKING: Kernel thread context (may sleep)

## RETURN

0 on success, AC\_ERR\_\* mask otherwise.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
