> I have tried to write an experimental simple device driver as follows:
> 
> <==================
> int device_read(struct file *filp, char *buf, size_t count,
>                 loff_t *f_pos)
> {
>   printk(KERN_DEBUG "closed device\n");

Hmm! - You certainly are aware, that you do _NOT_ close your device here!

>               return 1;
> }
>
> int device_open (struct inode* i,struct file* f)
> {
>   printk(KERN_DEBUG "opened device\n");
>               return 1;
> }
>
> Is there anything obviously wrong in the way I am going about things?

Well, I suggest you return 0 if your driver functions completed successfully!

Cheers,

        Tom.
--
Thomas M. Galla 
DECOMSYS - Dependable Computer Systems
Stumpergasse 48/28, A-1060 Wien, Austria
Phone: +43 1 59983-15 
Fax: +43 1 59983-18
mailto:[EMAIL PROTECTED] 
http://www.decomsys.com

_______________________________________________
Rtl mailing list
[EMAIL PROTECTED]
http://www2.fsmlabs.com/mailman/listinfo.cgi/rtl

Reply via email to