---
name: "hsi_alloc_controller"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/hsi_alloc_controller"
---

# hsi\_alloc\_controller(9)

Allocate an HSI controller and its ports

## NAME

hsi\_alloc\_controller - Allocate an HSI controller and its ports

## SYNOPSIS

**struct hsi\_controller \* hsi\_alloc\_controller(unsigned int** *n\_ports***, gfp\_t** *flags***);**

## ARGUMENTS

*n\_ports*

Number of ports on the HSI controller

*flags*

Kernel allocation flags

## DESCRIPTION

Return NULL on failure or a pointer to an hsi\_controller on success.

## COPYRIGHT
