[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 1

md_restart_block_read Kernel Service

Purpose

A copy of the RESTART_BLOCK structure in the NVRAM header will be placed in the caller's buffer.

Syntax

#include <sys/mdio.h>
int md_restart_block_read (md)
                struct mdio *md;

Parameters

md Specifies the address of the mdio structure. The mdio structure contains the following fields:
md_data Pointer to the data buffer.
md_size Number of bytes in the data buffer.
md_addr Contains the value PMMode on return in the least significant byte.

Description

The RestartBlock which is in the NVRAM header will be copied to the user supplied buffer. This block is a communication vehicle for the Power Management software and the firmware.

Return Values

Returns 0 for successful completion.

ENOMEM Indicates that there was not enough room in the user supplied buffer to contain the RestartBlock.
EINVAL Indicates this is not a PowerPC reference platform.

Prerequisite Information

Kernel Extensions and Device Driver Management Kernel Services in Kernel Extensions and Device Support Programming Concepts.

Implementation Specifics

The md_restart_block_read Kernel Service is part of the Base Operating System (BOS) Runtime.

Related Information

Machine Device Driver in AIX Version 4.1 Technical Reference, Volume 6: Kernel and Subsystems.


[ Previous | Next | Contents | Home | Search ]