Skip Navigation Links | |
Exit Print View | |
![]() |
man pages section 3: Extended Library Functions Oracle Solaris 10 1/13 Information Library |
Extended Library Functions - Part 1
Extended Library Functions - Part 2
Extended Library Functions - Part 3
gl_customize_completion(3TECLA)
HBA_GetAdapterAttributes(3HBAAPI)
HBA_GetAdapterPortAttributes(3HBAAPI)
HBA_GetBindingCapability(3HBAAPI)
HBA_GetBindingSupport(3HBAAPI)
HBA_GetDiscoveredPortAttributes(3HBAAPI)
HBA_GetFcpPersistentBinding(3HBAAPI)
HBA_GetFcpTargetMapping(3HBAAPI)
HBA_GetFcpTargetMappingV2(3HBAAPI)
HBA_GetNumberOfAdapters(3HBAAPI)
HBA_GetPersistentBindingV2(3HBAAPI)
HBA_GetPortAttributesByWWN(3HBAAPI)
HBA_GetPortStatistics(3HBAAPI)
HBA_GetVendorLibraryAttributes(3HBAAPI)
HBA_GetWrapperLibraryAttributes(3HBAAPI)
HBA_RefreshAdapterConfiguration(3HBAAPI)
HBA_RefreshInformation(3HBAAPI)
HBA_RegisterForAdapterAddEvents(3HBAAPI)
HBA_RegisterForAdapterEvents(3HBAAPI)
HBA_RegisterForAdapterPortEvents(3HBAAPI)
HBA_RegisterForAdapterPortStatEvents(3HBAAPI)
HBA_RegisterForLinkEvents(3HBAAPI)
HBA_RegisterForTargetEvents(3HBAAPI)
HBA_RemoveAllPersistentBindings(3HBAAPI)
HBA_RemovePersistentBinding(3HBAAPI)
HBA_ScsiReadCapacityV2(3HBAAPI)
HBA_SetBindingSupport(3HBAAPI)
HBA_SetPersistentBindingV2(3HBAAPI)
IFDHCreateChannelByName(3SMARTCARD)
IFDHGetCapabilities(3SMARTCARD)
IFDHSetCapabilities(3SMARTCARD)
IFDHSetProtocolParameters(3SMARTCARD)
MP_AssignLogicalUnitToTPG(3MPAPI)
MP_DeregisterForObjectPropertyChanges(3MPAPI)
MP_DeregisterForObjectVisibilityChanges(3MPAPI)
MP_DisableAutoFailback(3MPAPI)
Extended Library Functions - Part 4
- PICL interface library
cc [ flag . . . ] file . . . -lpicl [ library . . . ] #include <picl.h>
The PICL interface is the platform-independent interface for clients to access the platform information. The set of functions and data structures of this interface are defined in the <picl.h> header.
The information published through PICL is organized in a tree, where each node is an instance of a well-defined PICL class. The functions in the PICL interface allow the clients to access the properties of the nodes.
The name of the base PICL class is picl, which defines a basic set of properties that all nodes in the tree must possess. The following table shows the property set of a picl class node.
|
Property names with a a leading underscore ('_') are reserved for use by the PICL framework. The property names _class, _parent, _child, and _peer are reserved names of the PICL framework, and are used to refer to a node's parent, child, and peer nodes, respectively. A client shall access a reserved property by their names only as they do not have an associated handle. The property name is not a reserved property, but a mandatory property for all nodes.
Properties are classified into different types. Properties of type integer, unsigned-integer, and float have integer, unsigned integer, and floating-point values, respectively. A table property type has the handle to a table as its value. A table is a matrix of properties. A reference property type has a handle to a node in the tree as its value. A reference property may be used to establish an association between any two nodes in the tree. A timestamp property type has the value of time in seconds since Epoch. A bytearray property type has an array of bytes as its value. A charstring property type has a nul ('\0') terminated sequence of ASCII characters. The size of a property specifies the size of its value in bytes. A void property type denotes a property that exists but has no value.
The following table lists the different PICL property types enumerated in picl_prop_type_t.
|
Reference properties may be used by plug-ins to publish properties in nodes of different classes. To make these property names unique, their names must be prefixed by _picl_class_name_, where picl_class_name is the class name of the node referenced by the property. Valid PICL class names are combinations of uppercase and lowercase letters 'a' through 'z', digits '0' through '9', and '-' (minus) characters. The string that follows the '_picl_class_name_' portion of a reference property name may be used to indicate a specific property in the referenced class, when applicable.
The information about a node's property that can be accessed by PICL clients is defined by the picl_propinfo_t structure.
typedef struct { picl_prop_type_t type; /* property type */ unsigned int accessmode; /* read, write */ size_t size; /* item size or string size */ char name[PICL_PROPNAMELEN_MAX]; } picl_propinfo_t;
The type member specifies the property value type and the accessmode specifies the allowable access to the property. The plug-in module that adds the property to the PICL tree also sets the access mode of that property. The volatile nature of a property created by the plug-in is not visible to the PICL clients. The size member specifies the number of bytes occupied by the property's value. The maximum allowable size of property value is PICL_PROPSIZE_MAX, which is set to 512KB.
The plug-in module may publish a property granting a combination of the following access modes to the clients:
#define PICL_READ 0x1 /* read permission */ #define PICL_WRITE 0x2 /* write permission */
The maximum length of the name of any property is specified by PICL_PROPNAMELEN_MAX.
The maximum length of a PICL class name is specified by PICL_CLASSNAMELEN_MAX.
See attributes(5) for descriptions of the following attributes:
|