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

Item Description
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 software and the firmware.

Return Values

Returns 0 for successful completion.

Item Description
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.