1SND_LOOKUP_MINOR_DAT(9) Management of Cards and Device SND_LOOKUP_MINOR_DAT(9)
2
3
4

NAME

6       snd_lookup_minor_data - get user data of a registered device
7

SYNOPSIS

9       void * snd_lookup_minor_data(unsigned int minor, int type);
10

ARGUMENTS

12       minor
13           the minor number
14
15       type
16           device type (SNDRV_DEVICE_TYPE_XXX)
17

DESCRIPTION

19       Checks that a minor device with the specified type is registered, and
20       returns its user data pointer.
21
22       This function increments the reference counter of the card instance if
23       an associated instance with the given minor number and type is found.
24       The caller must call snd_card_unref appropriately later.
25

RETURN

27       The user data pointer if the specified device is found.  NULL
28       otherwise.
29
31Kernel Hackers Manual 3.10         June 2019           SND_LOOKUP_MINOR_DAT(9)
Impressum