From: Juergen Gross Date: Tue, 11 Jan 2022 14:58:04 +0000 (+0100) Subject: Introduce a common dev pointer in struct file X-Git-Tag: xen-4.17.0-rc4~39 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2e3bb09a98f2912a045b21dee1cf0216edb8001d;p=people%2Fandrewcoop%2Fmini-os.git Introduce a common dev pointer in struct file 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 Reviewed-by: Samuel Thibault --- diff --git a/include/lib.h b/include/lib.h index dc56f52..60aaf1c 100644 --- a/include/lib.h +++ b/include/lib.h @@ -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;