Linux Kernel
3.7.1
|
#include <linux/compat.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <asm/compat.h>
#include <asm/ccwdev.h>
#include "zfcp_def.h"
#include "zfcp_ext.h"
#include "zfcp_fsf.h"
Go to the source code of this file.
Data Structures | |
struct | zfcp_cfdc_data |
Macros | |
#define | KMSG_COMPONENT "zfcp" |
#define | pr_fmt(fmt) KMSG_COMPONENT ": " fmt |
#define | ZFCP_CFDC_CMND_DOWNLOAD_NORMAL 0x00010001 |
#define | ZFCP_CFDC_CMND_DOWNLOAD_FORCE 0x00010101 |
#define | ZFCP_CFDC_CMND_FULL_ACCESS 0x00000201 |
#define | ZFCP_CFDC_CMND_RESTRICTED_ACCESS 0x00000401 |
#define | ZFCP_CFDC_CMND_UPLOAD 0x00010002 |
#define | ZFCP_CFDC_DOWNLOAD 0x00000001 |
#define | ZFCP_CFDC_UPLOAD 0x00000002 |
#define | ZFCP_CFDC_WITH_CONTROL_FILE 0x00010000 |
#define | ZFCP_CFDC_IOC_MAGIC 0xDD |
#define | ZFCP_CFDC_IOC _IOWR(ZFCP_CFDC_IOC_MAGIC, 0, struct zfcp_cfdc_data) |
Functions | |
void | zfcp_cfdc_adapter_access_changed (struct zfcp_adapter *adapter) |
void | zfcp_cfdc_port_denied (struct zfcp_port *port, union fsf_status_qual *qual) |
void | zfcp_cfdc_lun_denied (struct scsi_device *sdev, union fsf_status_qual *qual) |
void | zfcp_cfdc_lun_shrng_vltn (struct scsi_device *sdev, union fsf_status_qual *qual) |
int | zfcp_cfdc_open_lun_eval (struct scsi_device *sdev, struct fsf_qtcb_bottom_support *bottom) |
Variables | |
struct miscdevice | zfcp_cfdc_misc |
#define KMSG_COMPONENT "zfcp" |
Definition at line 11 of file zfcp_cfdc.c.
#define pr_fmt | ( | fmt | ) | KMSG_COMPONENT ": " fmt |
Definition at line 12 of file zfcp_cfdc.c.
#define ZFCP_CFDC_CMND_DOWNLOAD_FORCE 0x00010101 |
Definition at line 25 of file zfcp_cfdc.c.
#define ZFCP_CFDC_CMND_DOWNLOAD_NORMAL 0x00010001 |
Definition at line 24 of file zfcp_cfdc.c.
#define ZFCP_CFDC_CMND_FULL_ACCESS 0x00000201 |
Definition at line 26 of file zfcp_cfdc.c.
#define ZFCP_CFDC_CMND_RESTRICTED_ACCESS 0x00000401 |
Definition at line 27 of file zfcp_cfdc.c.
#define ZFCP_CFDC_CMND_UPLOAD 0x00010002 |
Definition at line 28 of file zfcp_cfdc.c.
#define ZFCP_CFDC_DOWNLOAD 0x00000001 |
Definition at line 30 of file zfcp_cfdc.c.
#define ZFCP_CFDC_IOC _IOWR(ZFCP_CFDC_IOC_MAGIC, 0, struct zfcp_cfdc_data) |
Definition at line 35 of file zfcp_cfdc.c.
#define ZFCP_CFDC_IOC_MAGIC 0xDD |
Definition at line 34 of file zfcp_cfdc.c.
#define ZFCP_CFDC_UPLOAD 0x00000002 |
Definition at line 31 of file zfcp_cfdc.c.
#define ZFCP_CFDC_WITH_CONTROL_FILE 0x00010000 |
Definition at line 32 of file zfcp_cfdc.c.
void zfcp_cfdc_adapter_access_changed | ( | struct zfcp_adapter * | adapter | ) |
zfcp_cfdc_adapter_access_changed - Process change in adapter ACT : Adapter where the Access Control Table (ACT) changed
After a change in the adapter ACT, check if access to any previously denied resources is now possible.
Definition at line 274 of file zfcp_cfdc.c.
void zfcp_cfdc_lun_denied | ( | struct scsi_device * | sdev, |
union fsf_status_qual * | qual | ||
) |
void zfcp_cfdc_lun_shrng_vltn | ( | struct scsi_device * | sdev, |
union fsf_status_qual * | qual | ||
) |
zfcp_cfdc_lun_shrng_vltn - Evaluate LUN sharing violation status : The LUN / SCSI device where sharing violation occurred : The FSF status qualifier from the LUN sharing violation
Definition at line 367 of file zfcp_cfdc.c.
int zfcp_cfdc_open_lun_eval | ( | struct scsi_device * | sdev, |
struct fsf_qtcb_bottom_support * | bottom | ||
) |
zfcp_cfdc_open_lun_eval - Eval access ctrl. status for successful "open lun" : The SCSI device / LUN where to evaluate the status : The qtcb bottom with the status from the "open lun"
Returns: 0 if LUN is usable, -EACCES if the access control table reports an unsupported configuration.
Definition at line 398 of file zfcp_cfdc.c.
void zfcp_cfdc_port_denied | ( | struct zfcp_port * | port, |
union fsf_status_qual * | qual | ||
) |
struct miscdevice zfcp_cfdc_misc |
Definition at line 261 of file zfcp_cfdc.c.