[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, 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.

Implementation Specifics

The md_restart_block_upd 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 ]