File operations
[MySQL FS Kernel Module]


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

Function Documentation

loff_t rkfs_file_llseek ( struct file *  file,
loff_t  offset,
int  origin 
)

Lseek.

Impelementation of lseek handler of VFS call ...

Parameters:
file Pointer to a file structure representing file to be read from.
offset Where to seek.
origin Start point of seek call.
Returns:
return Value of generic lseek operation.

1 OK.

Definition at line 417 of file fs_file.c.

References FSPDEBUG.

int rkfs_file_open ( struct inode *  inode,
struct file *  file 
)

Function for open file.

Open file ...

Parameters:
inode. 
file. 
Returns:
Return value of function generic_file_open.

Definition at line 309 of file fs_file.c.

References FSPDEBUG.

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.

Parameters:
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.
Returns:
number realy readen bytes.

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 ...

Parameters:
file Pointer to a file structure epresenting directory to read.
dirent Dirent to filled.
filldir pointer to a Function for filling a dirent.
Returns:
0 on error.

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 
)

Function for release file.

Release file, used by CFS call release file ...

Parameters:
ino Inode representing a file to be released. Omitted.
file File structure representing a file to be released. Omitted.
Returns:
always 0

Definition at line 329 of file fs_file.c.

References FSPDEBUG.

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.

Parameters:
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.
Returns:
Number realy readen bytes.

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().


Variable Documentation

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
}
file operations structure

Definition at line 42 of file fs_file.c.

Referenced by rkfs_inode_create(), and rkfs_super_read_inode().


Generated on Mon May 28 13:33:08 2007 for MYSQLFS by  doxygen 1.5.0