Lines Matching defs:file
101 static int vmcp_open(struct inode *inode, struct file *file)
116 file->private_data = session;
117 return nonseekable_open(inode, file);
120 static int vmcp_release(struct inode *inode, struct file *file)
124 session = file->private_data;
125 file->private_data = NULL;
132 vmcp_read(struct file *file, char __user *buff, size_t count, loff_t *ppos)
138 session = file->private_data;
155 vmcp_write(struct file *file, const char __user *buff, size_t count,
166 session = file->private_data;
183 *ppos = 0; /* reset the file pointer after a command */
200 static long vmcp_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
206 session = file->private_data;