fsc_device.h

Go to the documentation of this file.
00001 
00014 #ifndef FSC_DEVICE
00015  #define FSC_DEVICE
00016 
00017 
00019 #define QUERY(fmt, args...) printk(KERN_DEBUG "FSC: " fmt, ## args)
00020 
00021 
00023 #define CHAR_DEVICE_NAME "fsc_dev"
00024 
00025 
00031 #define MAX_BUFFER_LENGTH 5192
00032 
00033 
00038 struct buffer {
00039   char data[MAX_BUFFER_LENGTH];    
00040   int length;                      
00041   wait_queue_head_t deamon_queue;  
00042   wait_queue_head_t kernel_queue;  
00043 };
00044 
00045 
00046 /* Declarations of functions provided */
00047 int fsc_query(const char * , const int , char*, int);
00048 int fsc_read_procmem(char *, char **, off_t , int , int *, void *);
00049 void fsc_init(void);
00050 void fsc_fini(void);
00051 
00052 
00054 extern int fsc_major;
00055 
00056 
00058 extern struct file_operations fsc_fops;
00059 
00060 #endif
00061 
00062 

Generated on Mon May 28 13:33:08 2007 for MYSQLFS by  doxygen 1.5.0