aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/blktrans.h
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-02-22 13:39:33 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-26 12:37:40 -0500
commit026ec57886b67c092bf7baecd029a7c1c4998c28 (patch)
tree661a61956e03482a9efc1fa26ef41d2a53d755fa /include/linux/mtd/blktrans.h
parent75c0b84d41c6f08c0cb083464907005683ef2920 (diff)
mtd: blktrans: allow FTL drivers to export sysfs attributes
This patch adds an ability to export sysfs attributes below the block disk device. This can be used to pass the udev an information about the FTL and could include the vendor, serial, version, etc... Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/blktrans.h')
-rw-r--r--include/linux/mtd/blktrans.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/blktrans.h b/include/linux/mtd/blktrans.h
index d89b8fbba4c..b481ccd7ff3 100644
--- a/include/linux/mtd/blktrans.h
+++ b/include/linux/mtd/blktrans.h
@@ -10,6 +10,7 @@
10 10
11#include <linux/mutex.h> 11#include <linux/mutex.h>
12#include <linux/kref.h> 12#include <linux/kref.h>
13#include <linux/sysfs.h>
13 14
14struct hd_geometry; 15struct hd_geometry;
15struct mtd_info; 16struct mtd_info;
@@ -28,6 +29,7 @@ struct mtd_blktrans_dev {
28 int open; 29 int open;
29 struct kref ref; 30 struct kref ref;
30 struct gendisk *disk; 31 struct gendisk *disk;
32 struct attribute_group *disk_attributes;
31 struct task_struct *thread; 33 struct task_struct *thread;
32 struct request_queue *rq; 34 struct request_queue *rq;
33 spinlock_t queue_lock; 35 spinlock_t queue_lock;