umesh writes:
> I am sorry that I am not clear about the strace..
On your nearest Linux box, type "man strace" for more information.
It's a program that allows you to trace the interaction between
the user program and the kernel.
Looking at the source code, it appears that you have made up the
arguments to the open(), read() and write() methods in your kernel
module. You can't do this - you *must* follow the prototypes if
you wish your driver to work.
The correct arguments and return type are:
ssize_t xxx_write(struct file *file, const char *buf,
size_t count, loff_t *ppos);
ssize_t xxx_read(struct file * file, char * buf,
size_t count, loff_t *ppos);
int xxx_open(struct inode * inode, struct file * filp);
whereas you're using:
int audio_7212_write(char *buffer, int count);
void audio_7212_read(void);
int audio_7212_open(void);
_____
|_____| ------------------------------------------------- ---+---+-
| | Russell King [EMAIL PROTECTED] --- ---
| | | | http://www.arm.linux.org.uk/ / / |
| +-+-+ --- -+-
/ | THE developer of ARM Linux |+| /|\
/ | | | --- |
+-+-+ ------------------------------------------------- /\\\ |
unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]
++ Please use [EMAIL PROTECTED] for ++
++ kernel-related discussions. ++