Classes | |
| struct | write_buffer |
Functions | |
| ssize_t | rkfs_file_read (struct file *filp, char __user *buf, size_t count, loff_t *ppos) |
| Function for read from file. | |
| ssize_t | rkfs_file_write (struct file *filp, const char __user *buf, size_t count, loff_t *ppos) |
| Function for write to file. | |
| int | rkfs_file_open (struct inode *inode, struct file *file) |
| Function for open file. | |
| int | rkfs_file_release (struct inode *ino, struct file *file) |
| Function for release file. | |
| int | rkfs_file_readdir (struct file *file, void *dirent, filldir_t filldir) |
| Read dir. | |
| loff_t | rkfs_file_llseek (struct file *file, loff_t offset, int origin) |
| Lseek. | |
Variables | |
| file_operations | rkfs_fops |
| loff_t rkfs_file_llseek | ( | struct file * | file, | |
| loff_t | offset, | |||
| int | origin | |||
| ) |
Lseek.
Impelementation of lseek handler of VFS call ...
| file | Pointer to a file structure representing file to be read from. | |
| offset | Where to seek. | |
| origin | Start point of seek call. |
1 OK.
Definition at line 417 of file fs_file.c.
References FSPDEBUG.
| int rkfs_file_open | ( | struct inode * | inode, | |
| struct file * | file | |||
| ) |
| ssize_t rkfs_file_read | ( | struct file * | filp, | |
| char __user * | buf, | |||
| size_t | count, | |||
| loff_t * | ppos | |||
| ) |
Function for read from file.
Read up to count bytes from file represented by file structure pointed by filp.
| filp | Pointer to a file structure to be readen from. | |
| buf | Whereto place readen data. | |
| count | Maximum amount of readen bytes. | |
| ppos | Position in file. |
Definition at line 65 of file fs_file.c.
References CMD_ER_NR, struct_command::command_nr, struct_command::data, FSPDEBUG, MAX_QUERY_LENGTH, query(), ret_command, RKFS_BLOCKSIZE, and RKFS_DEF_QUERY_OK.
| int rkfs_file_readdir | ( | struct file * | file, | |
| void * | dirent, | |||
| filldir_t | filldir | |||
| ) |
Read dir.
Impelementation of readdir handler of VFS call ...
| file | Pointer to a file structure epresenting directory to read. | |
| dirent | Dirent to filled. | |
| filldir | pointer to a Function for filling a dirent. |
1 OK.
Definition at line 348 of file fs_file.c.
References CMD_OK_NR, struct_command::command_nr, struct_command::data, FSPDEBUG, MAX_ID_LENGTH, MAX_NAME_LENGTH, MAX_QUERY_LENGTH, struct_command::param, query(), ret_command, rkfs_atoi(), and rkfs_next_data_item().
| int rkfs_file_release | ( | struct inode * | ino, | |
| struct file * | file | |||
| ) |
| ssize_t rkfs_file_write | ( | struct file * | filp, | |
| const char __user * | buf, | |||
| size_t | count, | |||
| loff_t * | ppos | |||
| ) |
Function for write to file.
Write up to count bytes from buf to file repesente by file structure poited by filp.
| filp | Pointer to a to file structure. | |
| buf | Buffer for incoming data. | |
| count | Maximum amount of bytes to written to the file. | |
| ppos | Position in the file. |
Definition at line 147 of file fs_file.c.
References CMD_ER_NR, struct_command::command_nr, struct_command::data, FSPDEBUG, MAX_QUERY_LENGTH, struct_command::param, query(), ret_command, RKFS_BLOCKSIZE, RKFS_DEF_QUERY_OK, and rkfs_inode_truncate().
| struct file_operations rkfs_fops |
Initial value:
{
open: rkfs_file_open,
read: rkfs_file_read,
readdir: rkfs_file_readdir,
write: rkfs_file_write,
release: rkfs_file_release,
fsync: simple_sync_file,
llseek: rkfs_file_llseek
}
Definition at line 42 of file fs_file.c.
Referenced by rkfs_inode_create(), and rkfs_super_read_inode().
1.5.0