*参照元 [#w3577a30]
#backlinks

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

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


**引数 [#zdbccede]
-const char *name
--


**返り値 [#b536e37a]
-struct snd_info_entry *
--
--[[linux-2.6.33/snd_info_entry]]


**参考 [#i6aa5bef]


*実装 [#d9ed3494]
 /**
  * snd_info_create_entry - create an info entry
  * @name: the proc file name
  *
  * Creates an info entry with the given file name and initializes as
  * the default state.
  *
  * Usually called from other functions such as
  * snd_info_create_card_entry().
  *
  * Returns the pointer of the new instance, or NULL on failure.
  */
 static struct snd_info_entry *snd_info_create_entry(const char *name)
 {
 	struct snd_info_entry *entry;
-
--[[linux-2.6.33/snd_info_entry]]

 	entry = kzalloc(sizeof(*entry), GFP_KERNEL);
 	if (entry == NULL)
 		return NULL;
-
--[[linux-2.6.33/kzalloc()]]

 	entry->name = kstrdup(name, GFP_KERNEL);
 	if (entry->name == NULL) {
 		kfree(entry);
 		return NULL;
 	}
-
--[[linux-2.6.33/kstrdup()]]
-
--[[linux-2.6.33/kfree()]]

 	entry->mode = S_IFREG | S_IRUGO;
 	entry->content = SNDRV_INFO_CONTENT_TEXT;
 	mutex_init(&entry->access);
 	INIT_LIST_HEAD(&entry->children);
 	INIT_LIST_HEAD(&entry->list);
-
--[[linux-2.6.33/SNDRV_INFO_CONTENT_TEXT]]
-
--[[linux-2.6.33/mutex_init()]]
-
--[[linux-2.6.33/INIT_LIST_HEAD()]]

 	return entry;
 }

*コメント [#de6c5109]

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