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

# snd\_lookup\_minor\_data(9)

get user data of a registered device

## NAME

snd\_lookup\_minor\_data - get user data of a registered device

## SYNOPSIS

**void \* snd\_lookup\_minor\_data(unsigned int** *minor***, int** *type***);**

## ARGUMENTS

*minor*

the minor number

*type*

device type (SNDRV\_DEVICE\_TYPE\_XXX)

## DESCRIPTION

Checks that a minor device with the specified type is registered, and returns its user data pointer.

This function increments the reference counter of the card instance if an associated instance with the given minor number and type is found. The caller must call **snd\_card\_unref** appropriately later.

## RETURN

The user data pointer if the specified device is found. **NULL** otherwise.

## COPYRIGHT
