Flash Translation Layer  1.0
Data Fields
flash_operations Struct Reference

generic interface for communicate with the flash More...

#include <flash.h>

Collaboration diagram for flash_operations:
Collaboration graph

Data Fields

int(* open )(struct flash_device *, const char *name, int flags)
 
ssize_t(* write )(struct flash_device *, void *buffer, size_t count, off_t offset)
 
ssize_t(* read )(struct flash_device *, void *buffer, size_t count, off_t offset)
 
int(* ioctl )(struct flash_device *, unsigned int request,...)
 
int(* close )(struct flash_device *)
 

Detailed Description

generic interface for communicate with the flash

Note
struct flash_device * means flash control information
  • count: length of the buffer (bytes)
  • offset: offset of the write position (bytes, NOT sector(512 bytes))

Field Documentation

◆ close

int(* flash_operations::close) (struct flash_device *)

◆ ioctl

int(* flash_operations::ioctl) (struct flash_device *, unsigned int request,...)

for other instruction sets (barely use)

◆ open

int(* flash_operations::open) (struct flash_device *, const char *name, int flags)

open the flash device

◆ read

ssize_t(* flash_operations::read) (struct flash_device *, void *buffer, size_t count, off_t offset)

read from the flash

◆ write

ssize_t(* flash_operations::write) (struct flash_device *, void *buffer, size_t count, off_t offset)

write to the flash


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