#include <linux/init.h>
#include <linux/module.h>
#include <linux/list.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/raid_class.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
Go to the source code of this file.
|
#define | RAID_NUM_ATTRS 3 |
|
#define | to_raid_internal(tmpl) container_of(tmpl, struct raid_internal, r) |
|
#define | tc_to_raid_internal(tcont) |
|
#define | ac_to_raid_internal(acont) |
|
#define | device_to_raid_internal(dev) |
|
#define | raid_attr_show_internal(attr, fmt, var, code) |
|
#define | raid_attr_ro_states(attr, states, code) |
|
#define | raid_attr_ro_internal(attr, code) |
|
#define | ATTR_CODE(attr) |
|
#define | raid_attr_ro(attr) raid_attr_ro_internal(attr, ) |
|
#define | raid_attr_ro_fn(attr) raid_attr_ro_internal(attr, ATTR_CODE(attr)) |
|
#define | raid_attr_ro_state(attr) raid_attr_ro_states(attr, attr, ) |
|
#define | raid_attr_ro_state_fn(attr) raid_attr_ro_states(attr, attr, ATTR_CODE(attr)) |
|
#define ac_to_raid_internal |
( |
|
acont | ) |
|
Value:
tc_to_raid_internal(tc); \
})
Definition at line 47 of file raid_class.c.
#define ATTR_CODE |
( |
|
attr | ) |
|
#define device_to_raid_internal |
( |
|
dev | ) |
|
Value:
attribute_container_classdev_to_container(
dev); \
ac_to_raid_internal(ac); \
})
Definition at line 53 of file raid_class.c.
#define raid_attr_ro_internal |
( |
|
attr, |
|
|
|
code |
|
) |
| |
#define raid_attr_ro_states |
( |
|
attr, |
|
|
|
states, |
|
|
|
code |
|
) |
| |
Value:
code \
name = raid_##states##_name(
rd->attr); \
) \
Definition at line 186 of file raid_class.c.
#define raid_attr_show_internal |
( |
|
attr, |
|
|
|
fmt, |
|
|
|
var, |
|
|
|
code |
|
) |
| |
#define tc_to_raid_internal |
( |
|
tcont | ) |
|
Value:
to_raid_internal(r); \
})
Definition at line 41 of file raid_class.c.
MODULE_AUTHOR |
( |
"James Bottomley" |
| ) |
|
module_exit |
( |
raid_exit |
| ) |
|
module_init |
( |
raid_init |
| ) |
|
raid_attr_ro_fn |
( |
resync |
| ) |
|
raid_attr_ro_state |
( |
level |
| ) |
|
raid_attr_ro_state_fn |
( |
state |
| ) |
|