*参照元 [#v9dcc0fa]
#backlinks

*説明 [#h98007aa]
-パス: [[linux-2.6.33/sound/core/info.c]]

-FIXME: これは何?
--説明


**引数 [#i0fe4da2]
-struct snd_info_entry * entry
--
--[[linux-2.6.33/snd_info_entry]]


**返り値 [#f1dc34aa]
-int
--


**参考 [#l667a6c1]


*実装 [#maaa13cc]
 /**
  * snd_info_register - register the info entry
  * @entry: the info entry
  *
  * Registers the proc info entry.
  *
  * Returns zero if successful, or a negative error code on failure.
  */
 int snd_info_register(struct snd_info_entry * entry)
 {
 	struct proc_dir_entry *root, *p = NULL;
 
-
--[[linux-2.6.33/proc_dir_entry]]

 	if (snd_BUG_ON(!entry))
 		return -ENXIO;
-
--[[linux-2.6.33/snd_BUG_ON()]]

 	root = entry->parent == NULL ? snd_proc_root : entry->parent->p;
-
--[[linux-2.6.33/snd_proc_root(global)]]

 	mutex_lock(&info_mutex);
 	p = create_proc_entry(entry->name, entry->mode, root);
 	if (!p) {
 		mutex_unlock(&info_mutex);
 		return -ENOMEM;
 	}
-
--[[linux-2.6.33/mutex_lock()]]
-
--[[linux-2.6.33/create_proc_entry()]]
-
--[[linux-2.6.33/mutex_unlock()]]

 	if (!S_ISDIR(entry->mode))
 		p->proc_fops = &snd_info_entry_operations;
-
--[[linux-2.6.33/S_ISDIR()]]
-
--[[linux-2.6.33/snd_info_entry_operations(global)]]

 	p->size = entry->size;
 	p->data = entry;
 	entry->p = p;
 	if (entry->parent)
 		list_add_tail(&entry->list, &entry->parent->children);
-
--[[linux-2.6.33/list_add_tail()]]

 	mutex_unlock(&info_mutex);
 	return 0;
 }
 
 EXPORT_SYMBOL(snd_info_register);
-ライセンスに関係なくモジュールにシンボルを公開する。
--[[linux-2.6.33/EXPORT_SYMBOL()]]


*コメント [#hb8c6250]


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS