ZFCP HBA API Library
1
|
All calls that use the sysfs. More...
#include "vlib.h"
Functions | |
static HBA_STATUS | addPortByName (struct vlib_adapter *adapter, char *name) |
add a port to the adapters repos More... | |
static HBA_STATUS | addAdapterByDevPath (char *dev_path) |
add an adapter to the adapters repos More... | |
static HBA_STATUS | getPortAttributes (HBA_PORTATTRIBUTES **pPortattributes, char *classpath) |
Retrieve adapter attributes. More... | |
HBA_STATUS | sysfs_createAndReadConfigPorts (struct vlib_adapter *adapter) |
Read and store all discovered ports of an adapter. More... | |
HBA_STATUS | sysfs_createAndReadConfigAdapter () |
Read all adapters from /sys/bus/ccw/drivers/zfcp and add them to the repository. More... | |
int | sysfs_getUnitsFromPort (struct vlib_port *port) |
Get unit configuration information for a port. More... | |
HBA_STATUS | sysfs_getDiscoveredPortAttributes (HBA_PORTATTRIBUTES **pAttrs, struct vlib_port *port) |
Retrieve adapter attributes. More... | |
HBA_STATUS | sysfs_getAdapterPortAttributes (HBA_PORTATTRIBUTES **pAttrs, struct vlib_adapter *adapter) |
Retrieve adapter attributes. More... | |
HBA_STATUS | sysfs_getAdapterAttributes (HBA_ADAPTERATTRIBUTES **pAttrs, struct vlib_adapter *adapter) |
Retrieve adapter attributes. More... | |
HBA_STATUS | sysfs_getPortStatistics (HBA_PORTSTATISTICS **pS, struct vlib_adapter *adapter) |
Retrieve adapter port statistics. More... | |
All calls that use the sysfs.
|
static |
add an adapter to the adapters repos
*dev_path | the sysfs device as seen under /sys/devices/css0/x.x.xxx/x.x.xxxx |
|
static |
add a port to the adapters repos
*adapter | the adapter to which the add the port to |
*name | the unique name of the remote port as in fc_remote_ports |
|
static |
Retrieve adapter attributes.
**pPortattributes,HBA_ADAPTERATTRIBUTES | to be filled |
*adapter | to work with |
This function reads attributes from sysfs to fill in the required information.
HBA_STATUS sysfs_createAndReadConfigAdapter | ( | ) |
Read all adapters from /sys/bus/ccw/drivers/zfcp and add them to the repository.
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 vlib_adapter_ident::devid, and vlib_adapter::ident.
Referenced by revalidatePorts(), and updateAdapter().
HBA_STATUS sysfs_getAdapterAttributes | ( | HBA_ADAPTERATTRIBUTES ** | pAttrs, |
struct vlib_adapter * | adapter | ||
) |
Retrieve adapter attributes.
**pAdapterattributes,HBA_ADAPTERATTRIBUTES | to be filled |
*adapter | to work with |
This function reads attributes from sysfs to fill in the required information.
HBA_STATUS sysfs_getAdapterPortAttributes | ( | HBA_PORTATTRIBUTES ** | pAttrs, |
struct vlib_adapter * | adapter | ||
) |
Retrieve adapter attributes.
**pPortattributes,HBA_ADAPTERATTRIBUTES | to be filled |
*adapter | to work with |
This function reads attributes from sysfs to fill in the required information.
References vlib_adapter_ident::devid, and vlib_adapter::ident.
HBA_STATUS sysfs_getDiscoveredPortAttributes | ( | HBA_PORTATTRIBUTES ** | pAttrs, |
struct vlib_port * | port | ||
) |
Retrieve adapter attributes.
**pPortattributes,HBA_ADAPTERATTRIBUTES | to be filled |
*adapter | to work with |
This function reads attributes from sysfs to fill in the required information.
References vlib_port::name.
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 |
This function reads attributes from sysfs to fill in the required information.
int sysfs_getUnitsFromPort | ( | struct vlib_port * | port | ) |
Get unit configuration information for a port.
*port | for which unit configuration is received |
This function creates and reads private configuration events for all configured units of an port. It enlarges the array where unit data is stored and processes the generated configuration events.
Referenced by revalidateUnits(), and updateAdapter().