Ingen lysbildetittel - Department of Computer and Information Science
Ingen lysbildetittel - Department of Computer and Information Science
Ingen lysbildetittel - Department of Computer and Information Science
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
19<br />
File functions<br />
• The driver contains implementations <strong>of</strong> file functions:<br />
– static int foobar_open(struct inode *inode, struct file *filp);<br />
– static int foobar_release(struct inode *inode, struct file *filp);<br />
– static ssize_t foobar_read(struct file *filp, char __user *buff, ssize_t<br />
count, l<strong>of</strong>f_t *<strong>of</strong>fp);<br />
– etc. (for example write, seek, ioctl...)