Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mpt/mpt_raid.c
Show All 12 Lines | |||||
static void | static void | ||||
mpt_raid_sysctl_attach(struct mpt_softc *mpt) | mpt_raid_sysctl_attach(struct mpt_softc *mpt) | ||||
{ | { | ||||
struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(mpt->dev); | struct sysctl_ctx_list *ctx = device_get_sysctl_ctx(mpt->dev); | ||||
struct sysctl_oid *tree = device_get_sysctl_tree(mpt->dev); | struct sysctl_oid *tree = device_get_sysctl_tree(mpt->dev); | ||||
SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | ||||
"vol_member_wce", CTLTYPE_STRING | CTLFLAG_RW, mpt, 0, | "vol_member_wce", | ||||
CTLTYPE_STRING | CTLFLAG_RW | CTLFLAG_NEEDGIANT, | |||||
mpt, 0, | |||||
mpt_raid_sysctl_vol_member_wce, "A", | mpt_raid_sysctl_vol_member_wce, "A", | ||||
"volume member WCE(On,Off,On-During-Rebuild,NC)"); | "volume member WCE(On,Off,On-During-Rebuild,NC)"); | ||||
SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | ||||
"vol_queue_depth", CTLTYPE_INT | CTLFLAG_RW, mpt, 0, | "vol_queue_depth", | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, mpt, 0, | |||||
mpt_raid_sysctl_vol_queue_depth, "I", | mpt_raid_sysctl_vol_queue_depth, "I", | ||||
"default volume queue depth"); | "default volume queue depth"); | ||||
SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | ||||
"vol_resync_rate", CTLTYPE_INT | CTLFLAG_RW, mpt, 0, | "vol_resync_rate", | ||||
CTLTYPE_INT | CTLFLAG_RW | CTLFLAG_NEEDGIANT, mpt, 0, | |||||
mpt_raid_sysctl_vol_resync_rate, "I", | mpt_raid_sysctl_vol_resync_rate, "I", | ||||
"volume resync priority (0 == NC, 1 - 255)"); | "volume resync priority (0 == NC, 1 - 255)"); | ||||
SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, | ||||
"nonoptimal_volumes", CTLFLAG_RD, | "nonoptimal_volumes", CTLFLAG_RD, | ||||
&mpt->raid_nonopt_volumes, 0, | &mpt->raid_nonopt_volumes, 0, | ||||
"number of nonoptimal volumes"); | "number of nonoptimal volumes"); | ||||
} | } | ||||
Context not available. |