summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorMike Sullivan <sullivan@austin.ibm.com>2002-07-02 02:38:32 -0400
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-02 02:38:32 -0400
commitcc236b9a01356d7a5586b38b0f1649dcd3f9cc2a (patch)
treeb8b1f146b1e56a3fb83479111e76e8f34a837bf6 /include/linux
parentd9083ea2b8d34d827f77e3d8ceeb04c160a938ed (diff)
linux-2.5.22-driverfs.patch
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cdrom.h2
-rw-r--r--include/linux/genhd.h4
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/cdrom.h b/include/linux/cdrom.h
index b3a349fc341d..296ffe2cdfd4 100644
--- a/include/linux/cdrom.h
+++ b/include/linux/cdrom.h
@@ -716,6 +716,7 @@ struct request_sense {
#ifdef __KERNEL__
#include <linux/devfs_fs_kernel.h>
+#include <linux/device.h>
struct cdrom_write_settings {
unsigned char fpacket; /* fixed/variable packets */
@@ -730,6 +731,7 @@ struct cdrom_device_info {
struct cdrom_device_info *next; /* next device_info for this major */
void *handle; /* driver-dependent data */
devfs_handle_t de; /* real driver should create this */
+ struct device cdrom_driverfs_dev; /* driverfs implementation */
int number; /* generic driver updates this */
/* specifications */
kdev_t dev; /* device number */
diff --git a/include/linux/genhd.h b/include/linux/genhd.h
index 18c981dafbf3..44a954b2c370 100644
--- a/include/linux/genhd.h
+++ b/include/linux/genhd.h
@@ -12,6 +12,7 @@
#include <linux/config.h>
#include <linux/types.h>
#include <linux/major.h>
+#include <linux/device.h>
enum {
/* These three have identical behaviour; use the second one if DOS fdisk gets
@@ -62,6 +63,7 @@ struct hd_struct {
unsigned long nr_sects;
devfs_handle_t de; /* primary (master) devfs entry */
int number; /* stupid old code wastes space */
+ struct device hd_driverfs_dev; /* support driverfs hiearchy */
};
#define GENHD_FL_REMOVABLE 1
@@ -80,6 +82,7 @@ struct gendisk {
struct block_device_operations *fops;
devfs_handle_t *de_arr; /* one per physical disc */
+ struct device **driverfs_dev_arr;/* support driverfs hierarchy */
char *flags; /* one per physical disc */
};
@@ -241,6 +244,7 @@ char *disk_name (struct gendisk *hd, int minor, char *buf);
extern void devfs_register_partitions (struct gendisk *dev, int minor,
int unregister);
+extern void driverfs_remove_partitions (struct gendisk *hd, int minor);
static inline unsigned int disk_index (kdev_t dev)
{