Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
logfs_device_ops Struct Reference

#include <logfs.h>

Data Fields

struct page *(* find_first_sb )(struct super_block *sb, u64 *ofs)
 
struct page *(* find_last_sb )(struct super_block *sb, u64 *ofs)
 
int(* write_sb )(struct super_block *sb, struct page *page)
 
int(* readpage )(void *_sb, struct page *page)
 
void(* writeseg )(struct super_block *sb, u64 ofs, size_t len)
 
int(* erase )(struct super_block *sb, loff_t ofs, size_t len, int ensure_write)
 
int(* can_write_buf )(struct super_block *sb, u64 ofs)
 
void(* sync )(struct super_block *sb)
 
void(* put_device )(struct logfs_super *s)
 

Detailed Description

struct logfs_device_ops - device access operations

: read one page (mm page) : write one segment. may be a partial segment : erase one segment : read from the device : erase part of the device : decide whether wbuf can be written to ofs

Definition at line 150 of file logfs.h.

Field Documentation

int(* can_write_buf)(struct super_block *sb, u64 ofs)

Definition at line 158 of file logfs.h.

int(* erase)(struct super_block *sb, loff_t ofs, size_t len, int ensure_write)

Definition at line 156 of file logfs.h.

struct page*(* find_first_sb)(struct super_block *sb, u64 *ofs)
read

Definition at line 151 of file logfs.h.

struct page*(* find_last_sb)(struct super_block *sb, u64 *ofs)
read

Definition at line 152 of file logfs.h.

void(* put_device)(struct logfs_super *s)

Definition at line 160 of file logfs.h.

int(* readpage)(void *_sb, struct page *page)

Definition at line 154 of file logfs.h.

Definition at line 159 of file logfs.h.

int(* write_sb)(struct super_block *sb, struct page *page)

Definition at line 153 of file logfs.h.

void(* writeseg)(struct super_block *sb, u64 ofs, size_t len)

Definition at line 155 of file logfs.h.


The documentation for this struct was generated from the following file: