[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Technical Reference: Kernel and Subsystems, 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 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.

Related Information

Machine Device Driver in AIX 5L Version 5.2 Technical Reference: Kernel and Subsystems Volume 2.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]