[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Understanding the Diagnostic Subsystem for AIX

pdiag_cs_get_attr

Purpose

Returns resource attribute information.

Syntax

int32 pdiag_cs_get_attr ( char *device_instance, char *attribute,
                char **cvalue, char *type )

Description

The pdiag_cs_get_attr subroutine searches the data configuration database to obtain the value of the attribute for the device. The value and type is returned to the calling application.

Parameters

device_instance Name of the device under test.
attribute Character string describing attribute to be retrieved. Supported device attribute names:
  • alias
  • alt_addr
  • attn_mac
  • beacon_mac
  • bus_addr_start
  • bus_id
  • bus_intr_lvl
  • bus_io_addr
  • bus_io_length
  • bus_mem_addr
  • bus_mem_start
  • bus_type
  • dma1_start
  • dma2_start
  • dma3_start
  • dma4_start
  • dma_bus_mem
  • dma_channel
  • dma_lvl
  • gd_frequency
  • int_level
  • intr_priority
  • rcv_que_size
  • ring_speed
  • use_alt_addr
  • vram_start
  • xmt_que_size
cvalue Pointer to data buffer, set by this function to address of buffer allocated to hold the attribute data.
type Character set by this function to indicate the returned data type. Supported data types are:
s String
i Long integer

Return Value

A value of 0 is returned if successful.


[ Previous | Next | Contents | Home | Search ]