Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f14bb039 authored by Andy Grover's avatar Andy Grover Committed by Nicholas Bellinger
Browse files

uio: Export definition of struct uio_device



In order to prevent a O(n) search of the filesystem to link up its uio
node with its target configuration, TCMU needs to know the minor number
that UIO assigned. Expose the definition of this struct so TCMU can
access this field.

Signed-off-by: default avatarAndy Grover <agrover@redhat.com>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 20959c4b
Loading
Loading
Loading
Loading
+0 −12
Original line number Original line Diff line number Diff line
@@ -28,18 +28,6 @@


#define UIO_MAX_DEVICES		(1U << MINORBITS)
#define UIO_MAX_DEVICES		(1U << MINORBITS)


struct uio_device {
	struct module		*owner;
	struct device		*dev;
	int			minor;
	atomic_t		event;
	struct fasync_struct	*async_queue;
	wait_queue_head_t	wait;
	struct uio_info		*info;
	struct kobject		*map_dir;
	struct kobject		*portio_dir;
};

static int uio_major;
static int uio_major;
static struct cdev *uio_cdev;
static struct cdev *uio_cdev;
static DEFINE_IDR(uio_idr);
static DEFINE_IDR(uio_idr);
+11 −1
Original line number Original line Diff line number Diff line
@@ -63,7 +63,17 @@ struct uio_port {


#define MAX_UIO_PORT_REGIONS	5
#define MAX_UIO_PORT_REGIONS	5


struct uio_device;
struct uio_device {
        struct module           *owner;
        struct device           *dev;
        int                     minor;
        atomic_t                event;
        struct fasync_struct    *async_queue;
        wait_queue_head_t       wait;
        struct uio_info         *info;
        struct kobject          *map_dir;
        struct kobject          *portio_dir;
};


/**
/**
 * struct uio_info - UIO device capabilities
 * struct uio_info - UIO device capabilities