Re: accessing files, devices, in kernel modules



Yellow wrote:

but what I'd like to know is: can I use the sound card the same way I
use it in user space programs? like reading and opening a file? my
final goal is record some sound from the microphone for 3 seconds, and
then play it.

> thank you. now I understand that I shouldn't read/write files from a
> module.

Why do that in the kernel? That sounds like an user level operation.
.