*参照元 [#b758f077] #backlinks *説明 [#z2e348b5] -パス: [[linux-2.6.33/sound/core/pcm_lib.c]] -FIXME: これは何? --説明 **引数 [#k0df2335] -struct snd_pcm_substream *substream -- --[[linux-2.6.33/snd_pcm_substream]] -void __user **bufs -- -snd_pcm_uframes_t frames -- --[[linux-2.6.33/snd_pcm_uframes_t]] **返り値 [#n472001d] -snd_pcm_sframes_t -- --[[linux-2.6.33/snd_pcm_sframes_t]] **参考 [#pb7ae154] *実装 [#q556278b] snd_pcm_sframes_t snd_pcm_lib_writev(struct snd_pcm_substream *substream, void __user **bufs, snd_pcm_uframes_t frames) { struct snd_pcm_runtime *runtime; int nonblock; int err; - --[[linux-2.6.33/snd_pcm_runtime]] err = pcm_sanity_check(substream); if (err < 0) return err; - -書き込み可能かどうかチェックする。 --[[linux-2.6.33/pcm_sanity_check()]] runtime = substream->runtime; nonblock = !!(substream->f_flags & O_NONBLOCK); if (runtime->access != SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) return -EINVAL; - --[[linux-2.6.33/SNDRV_PCM_ACCESS_RW_NONINTERLEAVED]] return snd_pcm_lib_write1(substream, (unsigned long)bufs, frames, nonblock, snd_pcm_lib_writev_transfer); - --[[linux-2.6.33/snd_pcm_lib_write1()]] - --[[linux-2.6.33/snd_pcm_lib_writev_transfer()]] } EXPORT_SYMBOL(snd_pcm_lib_writev); -ライセンスに関係なくシンボルを公開する。 --[[linux-2.6.33/EXPORT_SYMBOL()]] *コメント [#d74f6a8b]