linux-2.6.33/snd_pcm_lib_ioctl()
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#qeccb08d]
#backlinks
*説明 [#r0895e9e]
-パス: [[linux-2.6.33/sound/core/pcm_lib.c]]
-FIXME: これは何?
--説明
**引数 [#f3c8c7b2]
-struct snd_pcm_substream *substream
--
--[[linux-2.6.33/snd_pcm_substream]]
-unsigned int cmd
--
-void *arg
--
**返り値 [#tdfc3383]
-int
--
**参考 [#m3ad00e7]
*実装 [#k22d97e4]
/**
* snd_pcm_lib_ioctl - a generic PCM ioctl callback
* @substream: the pcm substream instance
* @cmd: ioctl command
* @arg: ioctl argument
*
* Processes the generic ioctl commands for PCM.
* Can be passed as the ioctl callback for PCM ops.
*
* Returns zero if successful, or a negative error code ...
*/
int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
unsigned int cmd, void *arg)
{
switch (cmd) {
case SNDRV_PCM_IOCTL1_INFO:
return 0;
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_INFO]]
case SNDRV_PCM_IOCTL1_RESET:
return snd_pcm_lib_ioctl_reset(substream, arg);
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_RESET]]
-
--[[linux-2.6.33/snd_pcm_lib_ioctl_reset()]]
case SNDRV_PCM_IOCTL1_CHANNEL_INFO:
return snd_pcm_lib_ioctl_channel_info(substream, arg);
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_CHANNEL_INFO]]
-
--[[linux-2.6.33/snd_pcm_lib_ioctl_channel_info()]]
case SNDRV_PCM_IOCTL1_FIFO_SIZE:
return snd_pcm_lib_ioctl_fifo_size(substream, arg);
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_FIFO_SIZE]]
-
--[[linux-2.6.33/snd_pcm_lib_ioctl_fifo_size()]]
}
return -ENXIO;
}
EXPORT_SYMBOL(snd_pcm_lib_ioctl);
-カーネルモジュールのライセンスに関係なくシンボルを公開す...
--[[linux-2.6.33/EXPORT_SYMBOL()]]
*コメント [#t876484e]
終了行:
*参照元 [#qeccb08d]
#backlinks
*説明 [#r0895e9e]
-パス: [[linux-2.6.33/sound/core/pcm_lib.c]]
-FIXME: これは何?
--説明
**引数 [#f3c8c7b2]
-struct snd_pcm_substream *substream
--
--[[linux-2.6.33/snd_pcm_substream]]
-unsigned int cmd
--
-void *arg
--
**返り値 [#tdfc3383]
-int
--
**参考 [#m3ad00e7]
*実装 [#k22d97e4]
/**
* snd_pcm_lib_ioctl - a generic PCM ioctl callback
* @substream: the pcm substream instance
* @cmd: ioctl command
* @arg: ioctl argument
*
* Processes the generic ioctl commands for PCM.
* Can be passed as the ioctl callback for PCM ops.
*
* Returns zero if successful, or a negative error code ...
*/
int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream,
unsigned int cmd, void *arg)
{
switch (cmd) {
case SNDRV_PCM_IOCTL1_INFO:
return 0;
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_INFO]]
case SNDRV_PCM_IOCTL1_RESET:
return snd_pcm_lib_ioctl_reset(substream, arg);
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_RESET]]
-
--[[linux-2.6.33/snd_pcm_lib_ioctl_reset()]]
case SNDRV_PCM_IOCTL1_CHANNEL_INFO:
return snd_pcm_lib_ioctl_channel_info(substream, arg);
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_CHANNEL_INFO]]
-
--[[linux-2.6.33/snd_pcm_lib_ioctl_channel_info()]]
case SNDRV_PCM_IOCTL1_FIFO_SIZE:
return snd_pcm_lib_ioctl_fifo_size(substream, arg);
-
--[[linux-2.6.33/SNDRV_PCM_IOCTL1_FIFO_SIZE]]
-
--[[linux-2.6.33/snd_pcm_lib_ioctl_fifo_size()]]
}
return -ENXIO;
}
EXPORT_SYMBOL(snd_pcm_lib_ioctl);
-カーネルモジュールのライセンスに関係なくシンボルを公開す...
--[[linux-2.6.33/EXPORT_SYMBOL()]]
*コメント [#t876484e]
ページ名: