 |
Index for Section 9 |
|
 |
Alphabetical listing for C |
|
 |
Bottom of page |
|
close(9r)
NAME
close - Graphics: Puts the display into console state when the Workstation
Subsystem is closed
SYNOPSIS
void (*ws_screen_functions->close)(
caddr_t screen_handle );
ARGUMENTS
screen_handle
Specifies the virtual address (handle) of device-specific information.
Typically this is a pointer to a private data structure that may
contain information such as the address of the hardware, state
information, and other information that may be shared between drivers.
The Workstation Subsystem allows separate handles for the cursor,
colormap, and the screen functions.
DESCRIPTION
The Workstation Subsystem calls the close function whenever the Workstation
Subsystem is closed, unless the function is defined as NULL. The device
driver should call this function when changing to console mode.
You group the close function with the screen functions in the
ws_screen_functions structure in /usr/sys/include/sys/wsdevice.h.
RETURN VALUES
None
EXAMPLES
The following code is from the Compaq implementation of close in the myvga
example driver:
void
myvga_close(caddr_t screen_handle)
{
register struct myvga_type *scp =
(struct myvga_type *)screen_handle;
if (myvga_developer_debug)
printf("myvga_close: entry\n");
}
FILES
/usr/sys/include/sys/workstation.h
/usr/sys/include/sys/wsdevice.h
SEE ALSO
Data Structures: ws_screen_functions(9s)
 |
Index for Section 9 |
|
 |
Alphabetical listing for C |
|
 |
Top of page |
|