*参照元 [#oa2cc3b4] #backlinks *説明 [#q82b6001] -パス: [[linux-2.6.33/sound/core/sound.c]] -FIXME: これは何? --説明 --/proc/asound/devices を読みだしたときに呼び出される。 **引数 [#jef21546] -struct snd_info_entry *entry -- --[[linux-2.6.33/snd_info_entry]] -struct snd_info_buffer *buffer -- --[[linux-2.6.33/snd_info_buffer]] **返り値 [#e0ccd4a0] -なし **参考 [#zabd5a35] *実装 [#k6c5c678] static void snd_minor_info_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) { int minor; struct snd_minor *mptr; - --[[linux-2.6.33/snd_minor]] mutex_lock(&sound_mutex); for (minor = 0; minor < SNDRV_OS_MINORS; ++minor) { if (!(mptr = snd_minors[minor])) continue; if (mptr->card >= 0) { if (mptr->device >= 0) snd_iprintf(buffer, "%3i: [%2i-%2i]: %s\n", minor, mptr->card, mptr->device, snd_device_type_name(mptr->type)); else snd_iprintf(buffer, "%3i: [%2i] : %s\n", minor, mptr->card, snd_device_type_name(mptr->type)); } else snd_iprintf(buffer, "%3i: : %s\n", minor, snd_device_type_name(mptr->type)); } mutex_unlock(&sound_mutex); - --[[linux-2.6.33/SNDRV_OS_MINORS]] - --[[linux-2.6.33/snd_minors(global)]] - --[[linux-2.6.33/snd_iprintf()]] - --[[linux-2.6.33/snd_device_type_name()]] - --[[linux-2.6.33/mutex_lock()]] - --[[linux-2.6.33/mutex_unlock()]] } *コメント [#c5303665]