#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <sys/types.h>
#include <sys/sysctl.h>
#include <sys/ioctl.h>
#include <sys/pciio.h>
#include <fcntl.h>
#include <dirent.h>
#include <unistd.h>
#include <elxu_device.h>
#include <elxu_sli4.h>
#include "elxu_common.h"
Go to the source code of this file.
| #define ELXU_BSD_COMMAND _IOWR('Q', 0, struct elxu_bsd_command_s) |
| #define OCS_DEV_TEMPLATE "/dev/ocs" |
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 230 of file elxu_bsd.c.
Close a device file.
- Description
- This function closes an open device file.
- Parameters
-
- Returns
- Returns nothing.
Definition at line 187 of file elxu_bsd.c.
| 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 211 of file elxu_bsd.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 148 of file elxu_bsd.c.