Exemple #1
0
int main() {
  struct inode *inode;
  struct file *file;
  char *buffer;
  const char *wbuffer;
  int fd, on;
  size_t count;
  loff_t *ppos;
  poll_table *wait;
  struct file *filp;

  TRACER_init_global_vars__();
  lockStatus = 0;
  qpmouse_init();
  open_qp(inode, file);
  read_qp(file, buffer, count, ppos);	    
  write_qp(file, wbuffer,count, ppos);	   
  poll_qp(file, wait);
  fasync_qp(fd, filp, on);
  release_qp(inode, file);

  if (lockStatus==1) errorFn();
}
Exemple #2
0
int init_module(void)
{
	return qpmouse_init();
}