]> xenbits.xensource.com Git - people/andrewcoop/mini-os.git/commitdiff
Introduce a common dev pointer in struct file
authorJuergen Gross <jgross@suse.com>
Tue, 11 Jan 2022 14:58:04 +0000 (15:58 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 12 Jan 2022 11:35:25 +0000 (11:35 +0000)
There are many dev pointers in a union in struct file. Prepare to
switch to a single one by introducing a new common one.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/lib.h

index dc56f52cda34394263b9abbb94ccffbf20fc7eee..60aaf1cdf86cccadb5862926985b475ab3a86391 100644 (file)
@@ -188,6 +188,7 @@ struct file {
     off_t offset;
     union {
         int fd; /* Any fd from an upper layer. */
+        void *dev;
        struct {
            struct evtchn_port_list ports;
        } evtchn;