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

NAME

6       snd_card_create - create and initialize a soundcard structure
7

SYNOPSIS

9       int snd_card_create(int idx, const char * xid, struct module * module,
10                           int extra_size, struct snd_card ** card_ret);
11

ARGUMENTS

13       idx
14           card index (address) [0 ... (SNDRV_CARDS-1)]
15
16       xid
17           card identification (ASCII string)
18
19       module
20           top level module for locking
21
22       extra_size
23           allocate this extra size after the main soundcard structure
24
25       card_ret
26           the pointer to store the created card instance
27

DESCRIPTION

29       Creates and initializes a soundcard structure.
30
31       The function allocates snd_card instance via kzalloc with the given
32       space for the driver to use freely. The allocated struct is stored in
33       the given card_ret pointer.
34
35       Returns zero if successful or a negative error code.
36
38Kernel Hackers Manual 2.6.       November 2011              SND_CARD_CREATE(9)
Impressum