Embedded Xinu Operating System
An ongoing research project and educational operating system.
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
Functions
flashWrite.c File Reference
#include <kernel.h>
#include <device.h>
#include <flash.h>

Functions

devcall flashWrite (device *devptr, uchar *buffer, ulong block)
 

Detailed Description

A simple, high-level interface to write to flash.

Function Documentation

devcall flashWrite ( device *  devptr,
uchar *  buffer,
ulong  block 
)

Provides a simple way to write the contents of a block to flash.

Parameters
*devptrpointer to the flash device
*bufferbuffer holding content to write (should be flash->log_size)
blockblock number to write to
Returns
OK on success, SYSERR on failure