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

# ht\_create\_irq(9)

create an irq and attach it to a device.

## NAME

ht\_create\_irq - create an irq and attach it to a device.

## SYNOPSIS

**int ht\_create\_irq(struct pci\_dev \*** *dev***, int** *idx***);**

## ARGUMENTS

*dev*

The hypertransport device to find the irq capability on.

*idx*

Which of the possible irqs to attach to.

## DESCRIPTION

ht\_create\_irq needs to be called for all hypertransport devices that generate irqs.

The irq number of the new irq or a negative error value is returned.

## COPYRIGHT
