lkml.org 
[lkml]   [2000]   [Mar]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectcreating a character driver
Hello,

I decided to learn to write character drivers, and searching for an
on-line document, I found the linux kernel hackers' guide. However I
want other documents to help me, so please send names or links.

By the way, I have a problem with the file_operations structure. The
compiler gets the error:

variable `th_fops' has initializer but incomplete type

the structure was declared this way:

static struct file_operations th_fops = {
NULL, /*lseek*/
NULL, /*read*/
th_write,
NULL, /*readdir*/
NULL, /*select*/
NULL, /*ioctl*/
NULL, /*mmap*/
NULL, /*open*/
NULL /*release*/
};

I included <linux/fs.h> wich I supose is the file where
file_operations is declared. Thanks in advance for any help.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:56    [W:0.063 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site