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

# register\_sound\_midi(9)

register a midi device

## NAME

register\_sound\_midi - register a midi device

## SYNOPSIS

**int register\_sound\_midi(const struct file\_operations \*** *fops***, int** *dev***);**

## ARGUMENTS

*fops*

File operations for the driver

*dev*

Unit number to allocate

## DESCRIPTION

Allocate a midi device. Unit is the number of the midi device requested. Pass -1 to request the next free midi unit.

## RETURN

On success, the allocated number is returned. On failure, a negative error code is returned.

## COPYRIGHT
