|
AquilaOS documentation
How it works, and its code
|
An open file's operations. More...
#include <vfs.h>
Data Fields | |
| int(*) | open (struct file *file) |
| ssize_t(*) | read (struct file *file, struct iobuf *io) |
| ssize_t(*) | write (struct file *file, struct iobuf *io) |
| ssize_t(*) | readdir (struct file *file, struct dirent *dirent) |
| off_t(*) | lseek (struct file *file, off_t offset, int whence) |
| int(*) | close (struct file *file) |
| int(*) | ioctl (struct file *file, int request, void *argp) |
| int(*) | trunc (struct file *file, off_t len) |
| int(*) | can_read (struct file *file, size_t size) |
| int(*) | can_write (struct file *file, size_t size) |
| int(*) | eof (struct file *) |
| uint64_t(*) | read_timeout (struct file *) |
An open file's operations.
read and write move the bytes through an iobuf (fs/iobuf.h), whose resid is how many are asked for.
Definition at line 39 of file vfs.h.
Referenced by kdev_file_can_read().
Definition at line 40 of file vfs.h.
Referenced by kdev_file_can_write().
Definition at line 34 of file vfs.h.
Referenced by kdev_file_close().
| int(*) fops::eof(struct file *) |
Definition at line 41 of file vfs.h.
Referenced by kdev_file_eof().
Definition at line 35 of file vfs.h.
Referenced by kdev_file_ioctl().
Definition at line 33 of file vfs.h.
Referenced by kdev_file_lseek().
Definition at line 29 of file vfs.h.
Referenced by kdev_file_open().
Definition at line 30 of file vfs.h.
Referenced by kdev_file_read().
Definition at line 45 of file vfs.h.
Referenced by posix_file_read().
Definition at line 31 of file vfs.h.
Referenced by kdev_file_write().