Go to the source code of this file.
Functions | |
HBA_STATUS | sysfs_createAndReadConfigPorts (struct vlib_adapter *) |
Read and store all discovered ports of an adapter. | |
HBA_STATUS | sysfs_createAndReadConfigAdapter () |
Read all adapters from /sys/bus/ccw/drivers/zfcp and add them to the repository. | |
HBA_STATUS | sysfs_getDiscoveredPortAttributes (HBA_PORTATTRIBUTES **, struct vlib_port *) |
Retrieve adapter attributes. | |
HBA_STATUS | sysfs_getAdapterPortAttributes (HBA_PORTATTRIBUTES **, struct vlib_adapter *) |
Retrieve adapter attributes. | |
HBA_STATUS | sysfs_getPortStatistics (HBA_PORTSTATISTICS **, struct vlib_adapter *) |
Retrieve adapter port statistics. | |
int | sysfs_getUnitsFromPort (struct vlib_port *) |
Get unit configuration information for a port. | |
static HBA_STATUS | revalidateRepository (void) |
Check status of the repository, and possibly revalidate it. | |
static int | revalidatePorts (struct vlib_adapter *adapter) |
Revalidate ports of an adapter in the repository. | |
static int | revalidateUnits (struct vlib_port *port) |
Revalidate units of an adapter and port in the repository. |
static int revalidatePorts | ( | struct vlib_adapter * | adapter | ) | [inline, static] |
Revalidate ports of an adapter in the repository.
*adapter | for which ports should be revalidated |
References block::allocated, vlib_adapter::ports, and sysfs_createAndReadConfigPorts().
Referenced by HBA_GetAdapterPortAttributes(), and HBA_GetFcpTargetMapping().
static HBA_STATUS revalidateRepository | ( | void | ) | [inline, static] |
Check status of the repository, and possibly revalidate it.
References sysfs_createAndReadConfigAdapter().
Referenced by HBA_GetAdapterAttributes(), HBA_GetAdapterName(), HBA_GetAdapterPortAttributes(), HBA_GetDiscoveredPortAttributes(), HBA_GetFcpTargetMapping(), HBA_GetNumberOfAdapters(), HBA_GetPortStatistics(), HBA_OpenAdapter(), and HBA_RefreshAdapterConfiguration().
static int revalidateUnits | ( | struct vlib_port * | port | ) | [inline, static] |
Revalidate units of an adapter and port in the repository.
*adapter | to which the port belongs | |
*port | for which the units should be revalidated |
References block::allocated, sysfs_getUnitsFromPort(), and vlib_port::units.
Referenced by detachWLUN(), getSgDevFromPort(), and HBA_GetFcpTargetMapping().
HBA_STATUS sysfs_createAndReadConfigAdapter | ( | ) |
Read all adapters from /sys/bus/ccw/drivers/zfcp and add them to the repository.
References addAdapterByBusDev(), and revalidateAdapters().
Referenced by HBA_LoadLibrary(), and revalidateRepository().
HBA_STATUS sysfs_createAndReadConfigPorts | ( | struct vlib_adapter * | adapter | ) |
Read and store all discovered ports of an adapter.
*adapter | pointer to the adapter in which we are interested |
References addPortByName(), vlib_adapter_ident::class_dev_name, vlib_adapter_ident::devid, and vlib_adapter::ident.
Referenced by revalidatePorts(), and updateAdapter().
HBA_STATUS sysfs_getAdapterPortAttributes | ( | HBA_PORTATTRIBUTES ** | pAttrs, | |
struct vlib_adapter * | adapter | |||
) |
Retrieve adapter attributes.
**pPortattributes,HBA_ADAPTERATTRIBUTES | to be filled | |
*adapter | to work with |
References addPortByName(), vlib_adapter_ident::class_dev_name, vlib_adapter_ident::devid, getPortAttributes(), and vlib_adapter::ident.
Referenced by HBA_GetAdapterPortAttributes().
HBA_STATUS sysfs_getDiscoveredPortAttributes | ( | HBA_PORTATTRIBUTES ** | pAttrs, | |
struct vlib_port * | port | |||
) |
Retrieve adapter attributes.
**pPortattributes,HBA_ADAPTERATTRIBUTES | to be filled | |
*adapter | to work with |
References getPortAttributes(), and vlib_port::name.
Referenced by HBA_GetDiscoveredPortAttributes().
HBA_STATUS sysfs_getPortStatistics | ( | HBA_PORTSTATISTICS ** | pS, | |
struct vlib_adapter * | adapter | |||
) |
Retrieve adapter port statistics.
**pPortstatistics,HBA_PORTSTATISTICS | to be filled | |
*adapter | to work with |
References vlib_adapter_ident::class_dev_name, and vlib_adapter::ident.
Referenced by HBA_GetPortStatistics().
int sysfs_getUnitsFromPort | ( | struct vlib_port * | port | ) |
Get unit configuration information for a port.
*port | for which unit configuration is received |
References addUnitToRepos(), vlib_unit::channel, vlib_unit::fcLun, vlib_unit::host, vlib_unit::lun, vlib_port::name, vlib_unit::sg_dev, and vlib_unit::target.
Referenced by revalidateUnits(), and updateAdapter().