#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#include <string.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
#include <fts.h>
#include <errno.h>
#include <ocs_ioctl.h>
#include <elxu_device.h>
#include <elxu_sli4.h>
#include <elxu_mbox.h>
#include "elxu_common.h"
#include "elx_pt_ioctl.h"
#include <ocsu_io.h>
Go to the source code of this file.
| #define ELX_PT_SERIAL_NUM_SIZE 32 |
| #define MAX_CONNECTIONS 256 |
Print iSCSI connection info for the given device.
- Description
- This function prints iSCSI connection information for the given device. BSD does not support iSCSI connection info, so this function prints an error message and returns.
- Parameters
-
| device | The device for which to print connection info. |
- Returns
- Returns nothing.
Definition at line 581 of file elxu_linux.c.
| static char * format_ip_address |
( |
uint8_t * |
address, |
|
|
uint8_t |
address_type |
|
) |
| |
|
static |
Close a device file.
- Description
- This function closes an open device file.
- Parameters
-
- Returns
- Returns nothing.
Definition at line 567 of file elxu_linux.c.
| static int os_create_device_files |
( |
char * |
driver_path | ) |
|
|
static |
| int os_ioctl_device |
( |
elxu_device_t * |
device, |
|
|
int |
req, |
|
|
void * |
arg |
|
) |
| |
Send an ioctl to an open device.
- Description
- This function sends an ioctl to an open device.
- Parameters
-
| device | A pointer to the device. |
| req | The request to be sent to the device. |
| arg | The argument to be sent to the device. |
- Returns
- Returns 0 on success; non-zero on failure.
Definition at line 555 of file elxu_linux.c.
Open a device file.
- Description
- This function opens a device file on BSD. The input is an elxu_device_name_t which contains a device index and a hostname. If the hostname is non-NULL then the request is for a userspace driver, and the hostname is the host one which the driver is running. This is not supported on BSD. If the hostname is NULL then the index field specifies which device file to open.
- Parameters
-
- Returns
- Returns a pointer to an elxu_device_t on success; NULL on failure.
Definition at line 520 of file elxu_linux.c.