Table 3-2 System Calls; User Flash Device Files; Interface (Header) File; Application Programming Interface - Sun Microsystems Netra CP2500 Programming Manual

For the solaris operating system
Table of Contents

Advertisement

User Flash Node Properties (Continued) (Continued)
TABLE 3-1
Property
Description/Value
00080000
bank-size
SUNW,370-xxxx
model
version number
version
flashprom
name
isa-flashprom
compatible
00000002 00000000 00100000
reg

User Flash Device Files

The user flash device file is /dev/uflash0.

Interface (Header) File

The user flash header file is located in the following path:
/usr/platform/SUNW,Netra-CP2500/include/sys/uflash_if.h

Application Programming Interface

Access to the user flash device from the Solaris OS is through an application or user
C program. No command-line tool is available. User programs open this device file
and then issue read, write, or ioctl commands to use the user flash device.
The system calls are listed below in
System Calls
TABLE 3-2
Call
read(), pread()
pwrite()
ioctl()
TABLE 3-2
Description
Reads device
Writes device
Erases device, queries device parameters
.
Chapter 3 User Flash
45

Advertisement

Table of Contents
loading

Table of Contents