- 追加された行はこの色です。
- 削除された行はこの色です。
*参照元 [#n3604cc9]
#backlinks
*説明 [#a13678a3]
-パス: [[linux-2.6.33/]]
-パス: [[linux-2.6.33/sound/core/info.c]]
-FIXME: これは何?
--説明
**引数 [#j1796b86]
-なし
**返り値 [#d27a97db]
-int
--
**参考 [#n7b1a86e]
*実装 [#c45e9f2a]
int __init snd_info_init(void)
{
struct proc_dir_entry *p;
-
--[[linux-2.6.33/proc_dir_entry]]
p = create_proc_entry("asound", S_IFDIR | S_IRUGO | S_IXUGO, NULL);
if (p == NULL)
return -ENOMEM;
snd_proc_root = p;
-
-procfs に asound ディレクトリを作成し、今後作成する procfs 上のファイルのルートとする。
--procfs が /proc にマウントされていれば、パスは /proc/asound となる。
--[[linux-2.6.33/create_proc_entry()]]
-
--[[linux-2.6.33/snd_proc_root(global)]]
#ifdef CONFIG_SND_OSSEMUL
-
--[[linux-2.6.33/CONFIG_SND_OSSEMUL]]
{
struct snd_info_entry *entry;
if ((entry = snd_info_create_module_entry(THIS_MODULE, "oss", NULL)) == NULL)
return -ENOMEM;
-
--[[linux-2.6.33/snd_info_entry]]
-
--[[linux-2.6.33/snd_info_create_module_entry()]]
-
--[[linux-2.6.33/THIS_MODULE]]
entry->mode = S_IFDIR | S_IRUGO | S_IXUGO;
if (snd_info_register(entry) < 0) {
snd_info_free_entry(entry);
return -ENOMEM;
}
snd_oss_root = entry;
-
--[[linux-2.6.33/snd_info_register()]]
-
--[[linux-2.6.33/snd_info_free_entry()]]
-
--[[linux-2.6.33/snd_oss_root(global)]]
}
#endif
#if defined(CONFIG_SND_SEQUENCER) || defined(CONFIG_SND_SEQUENCER_MODULE)
-
--[[linux-2.6.33/CONFIG_SND_SEQUENCER]]
-
--[[linux-2.6.33/CONFIG_SND_SEQUENCER_MODULE]]
{
struct snd_info_entry *entry;
if ((entry = snd_info_create_module_entry(THIS_MODULE, "seq", NULL)) == NULL)
return -ENOMEM;
-
--[[linux-2.6.33/snd_info_create_module_entry()]]
entry->mode = S_IFDIR | S_IRUGO | S_IXUGO;
if (snd_info_register(entry) < 0) {
snd_info_free_entry(entry);
return -ENOMEM;
}
snd_seq_root = entry;
-
--[[linux-2.6.33/snd_info_register()]]
-
--[[linux-2.6.33/snd_info_free_entry()]]
-
--[[linux-2.6.33/snd_seq_root(global)]]
}
#endif
snd_info_version_init();
snd_minor_info_init();
snd_minor_info_oss_init();
snd_card_info_init();
return 0;
-
--[[linux-2.6.33/snd_info_version_init()]]
-
--[[linux-2.6.33/snd_minor_info_init()]]
-
--[[linux-2.6.33/snd_minor_info_oss_init()]]
-
--[[linux-2.6.33/snd_card_info_init()]]
}
*コメント [#td2d78ca]