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

MapMemPage(D3pccard)


MapMemPage -- map memory area of Client's card into memory window

Synopsis

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

int CardServices (MapMemPage, WindowHandle_t *wh, int n2, int MapMemPagLen, MapMemPage_t *mw, rm_key_t key);

Description

MapMemPage( ) maps the memory area on a client's card into a page of a memory window that had previously been allocated with the RequestWindow(D3pccard) service.

Arguments


wh
Pointer to a WindowHandle(D4pccard) structure that was returned by the RequestWindow(D3pccard) function.

n2
NULL

MapMemPagLen
Length of the MapMemPage(D4pccard) structure.

mw
Pointer to a MapMemPage(D4pccard) structure.

key
Resource manager key.

Return values


BAD_HANDLE
I/O instead of memory window or *wh invalid.

BAD_PAGE
Page of memory window is not valid.

SUCCESS
Card memory area succesfully mapped into memory.

Usage

MapMemPage( ) is called as part of client configuration to associate a memory area on the card with the system memory returned by the RequestWindow(D3pccard) service.

The MapMemPage service works only for 16 bit cards.

Context and synchronization

Interrupt or user context

Hardware applicability

16-bit PC Card only.

Version applicability

pccard: 1, 2, 3

References

MapMemPage(D4pccard), MemPage(D4pccard) WindowHandle(D4pccard)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005