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

Technical Reference: Kernel and Subsystems, Volume 1

md_restart_block_upd Kernel Service

Purpose

The caller supplied RestartBlock will be copied to the NVRAM header.

Syntax

#include <sys/mdio.h>

int md_restart_block_upd (md, pmmode)
                struct mdio *md;
                unsigned char pmmode;

Description

The 8-bit value in pmmode will be stored into the NVRAM header at the PMMode offset.The RestartBlock which is in the caller's buffer will be copied to the NVRAM after the RestartBlock checksum is calculated and a new Crc1 value is computed.

Parameters

md Specifies the address of the mdio structure. The mdio structure contains the following fields:
md_data
Pointer to the RestartBlock structure..
pmmode Value to be stored into PMMode in the NVRAM header.

Return Values

Returns 0 for successful completion.

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 ]