Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
device_pgid.c File Reference
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/bitops.h>
#include <asm/ccwdev.h>
#include <asm/cio.h>
#include "cio.h"
#include "cio_debug.h"
#include "device.h"
#include "io_sch.h"

Go to the source code of this file.

Macros

#define PGID_RETRIES   256
 
#define PGID_TIMEOUT   (10 * HZ)
 

Functions

void ccw_device_verify_start (struct ccw_device *cdev)
 
void ccw_device_disband_start (struct ccw_device *cdev)
 
void ccw_device_stlck_start (struct ccw_device *cdev, void *data, void *buf1, void *buf2)
 

Macro Definition Documentation

#define PGID_RETRIES   256

Definition at line 23 of file device_pgid.c.

#define PGID_TIMEOUT   (10 * HZ)

Definition at line 24 of file device_pgid.c.

Function Documentation

void ccw_device_disband_start ( struct ccw_device cdev)

ccw_device_disband_start - disband pathgroup : ccw device

Execute a SET PGID channel program on to disband a previously established pathgroup. When finished, call ccw_device_disband_done with a return code specifying the result.

Definition at line 510 of file device_pgid.c.

void ccw_device_stlck_start ( struct ccw_device cdev,
void data,
void buf1,
void buf2 
)

ccw_device_stlck_start - perform unconditional release : ccw device : data pointer to be passed to ccw_device_stlck_done : data pointer used in channel program : data pointer used in channel program

Execute a channel program on to release an existing PGID reservation. When finished, call ccw_device_stlck_done with a return code specifying the result.

Definition at line 564 of file device_pgid.c.

void ccw_device_verify_start ( struct ccw_device cdev)

ccw_device_verify_start - perform path verification : ccw device

Perform an I/O on each available channel path to to determine which paths are operational. The resulting path mask is stored in sch->vpm. If device options specify pathgrouping, establish a pathgroup for the operational paths. When finished, call ccw_device_verify_done with a return code specifying the result.

Definition at line 460 of file device_pgid.c.