DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5 and SCO OpenServer 5

OpenMemory(D3pccard)


OpenMemory -- open area of a memory card

Synopsis (Unsupported service)

   #include <sys/types.h>
   #include <sys/lcs.h>
   #include <sys/lss.h>
   

int CardServices (OpenMemory, ClientHandle_t *cmh, int n2, int OpenMemoryLen, OpenMemory_t *mw, rm_key_t key);

Description

OpenMemory( ) opens an area of a memory card to allow the subsequent use of the ReadMemory(D3pccard), WriteMemory(D3pccard), CopyMemory(D3pccard), and the erase services.

Arguments


cmh
points to the ClientHandle(D4pccard) structure that had been originally furnished by RegisterClient(D3pccard).

n2
NULL

OpenMemoryLen
Length of the OpenMemory(D4pccard) structure.

mw
Pointer to the OpenMemory(D4pccard) structure.

key
Resource manager key.

Return values


UNSUPPORTED_SERVICE
Service not currently supported.

Usage

The integer type MemoryHandle_t is associated with an MTD and an absolute card offset. The MemoryHandle within ClientHandle will have to be passed along as a parameter with any calls to subsequent ReadMemory(D3pccard), WriteMemory(D3pccard), CopyMemory(D3pccard), and erase services.

This implementation's ClientHandle(D4pccard) structure does not contain a MemoryHandle.

Context and synchronization

Interrupt context

Hardware applicability

All

Version applicability

pccard: 3

References

ClientHandle(D4pccard), CloseMemory(D3pccard), CopyMemory(D3pccard), OpenMemory(D4pccard), ReadMemory(D3pccard), WriteMemory(D3pccard)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005