diff mbox series

[v3,16/32] Mini-OS: add EXPORT_SYMBOL() instances to events.c

Message ID 20231127102523.28003-17-jgross@suse.com (mailing list archive)
State New, archived
Headers show
Series Mini-OS: hide mini-os internal symbols | expand

Commit Message

Jürgen Groß Nov. 27, 2023, 10:25 a.m. UTC
Add the needed instances of EXPORT_SYMBOL() to events.c.

Signed-off-by: Juergen Gross <jgross@suse.com>
---
V3:
- new patch
---
 events.c | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Samuel Thibault Nov. 27, 2023, 8:01 p.m. UTC | #1
Juergen Gross, le lun. 27 nov. 2023 11:25:07 +0100, a ecrit:
> Add the needed instances of EXPORT_SYMBOL() to events.c.
> 
> Signed-off-by: Juergen Gross <jgross@suse.com>

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>

> ---
> V3:
> - new patch
> ---
>  events.c | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/events.c b/events.c
> index 4683e8e1..9f3dbf05 100644
> --- a/events.c
> +++ b/events.c
> @@ -119,6 +119,7 @@ void unbind_evtchn(evtchn_port_t port )
>      if ( rc )
>          printk("WARN: close_port %d failed rc=%d. ignored\n", port, rc);
>  }
> +EXPORT_SYMBOL(unbind_evtchn);
>  
>  evtchn_port_t bind_virq(uint32_t virq, evtchn_handler_t handler, void *data)
>  {
> @@ -138,6 +139,7 @@ evtchn_port_t bind_virq(uint32_t virq, evtchn_handler_t handler, void *data)
>      bind_evtchn(op.port, handler, data);
>  	return op.port;
>  }
> +EXPORT_SYMBOL(bind_virq);
>  
>  evtchn_port_t bind_pirq(uint32_t pirq, int will_share,
>                          evtchn_handler_t handler, void *data)
> @@ -157,6 +159,7 @@ evtchn_port_t bind_pirq(uint32_t pirq, int will_share,
>  	bind_evtchn(op.port, handler, data);
>  	return op.port;
>  }
> +EXPORT_SYMBOL(bind_pirq);
>  
>  /*
>   * Initially all events are without a handler and disabled
> @@ -217,6 +220,7 @@ int evtchn_alloc_unbound(domid_t pal, evtchn_handler_t handler,
>      *port = bind_evtchn(op.port, handler, data);
>      return rc;
>  }
> +EXPORT_SYMBOL(evtchn_alloc_unbound);
>  
>  /* Connect to a port so as to allow the exchange of notifications with
>     the pal. Returns the result of the hypervisor call. */
> @@ -240,6 +244,7 @@ int evtchn_bind_interdomain(domid_t pal, evtchn_port_t remote_port,
>      *local_port = bind_evtchn(port, handler, data);
>      return rc;
>  }
> +EXPORT_SYMBOL(evtchn_bind_interdomain);
>  
>  int evtchn_get_peercontext(evtchn_port_t local_port, char *ctx, int size)
>  {
> @@ -260,6 +265,7 @@ int evtchn_get_peercontext(evtchn_port_t local_port, char *ctx, int size)
>      rc = HYPERVISOR_xsm_op(&op);
>      return rc;
>  }
> +EXPORT_SYMBOL(evtchn_get_peercontext);
>  
>  /* Replace below when a hypercall is available to get the domid. */
>  domid_t get_domid(void)
> @@ -294,6 +300,7 @@ domid_t get_domid(void)
>  
>      return domid;
>  }
> +EXPORT_SYMBOL(get_domid);
>  
>  /*
>   * Local variables:
> -- 
> 2.35.3
>
diff mbox series

Patch

diff --git a/events.c b/events.c
index 4683e8e1..9f3dbf05 100644
--- a/events.c
+++ b/events.c
@@ -119,6 +119,7 @@  void unbind_evtchn(evtchn_port_t port )
     if ( rc )
         printk("WARN: close_port %d failed rc=%d. ignored\n", port, rc);
 }
+EXPORT_SYMBOL(unbind_evtchn);
 
 evtchn_port_t bind_virq(uint32_t virq, evtchn_handler_t handler, void *data)
 {
@@ -138,6 +139,7 @@  evtchn_port_t bind_virq(uint32_t virq, evtchn_handler_t handler, void *data)
     bind_evtchn(op.port, handler, data);
 	return op.port;
 }
+EXPORT_SYMBOL(bind_virq);
 
 evtchn_port_t bind_pirq(uint32_t pirq, int will_share,
                         evtchn_handler_t handler, void *data)
@@ -157,6 +159,7 @@  evtchn_port_t bind_pirq(uint32_t pirq, int will_share,
 	bind_evtchn(op.port, handler, data);
 	return op.port;
 }
+EXPORT_SYMBOL(bind_pirq);
 
 /*
  * Initially all events are without a handler and disabled
@@ -217,6 +220,7 @@  int evtchn_alloc_unbound(domid_t pal, evtchn_handler_t handler,
     *port = bind_evtchn(op.port, handler, data);
     return rc;
 }
+EXPORT_SYMBOL(evtchn_alloc_unbound);
 
 /* Connect to a port so as to allow the exchange of notifications with
    the pal. Returns the result of the hypervisor call. */
@@ -240,6 +244,7 @@  int evtchn_bind_interdomain(domid_t pal, evtchn_port_t remote_port,
     *local_port = bind_evtchn(port, handler, data);
     return rc;
 }
+EXPORT_SYMBOL(evtchn_bind_interdomain);
 
 int evtchn_get_peercontext(evtchn_port_t local_port, char *ctx, int size)
 {
@@ -260,6 +265,7 @@  int evtchn_get_peercontext(evtchn_port_t local_port, char *ctx, int size)
     rc = HYPERVISOR_xsm_op(&op);
     return rc;
 }
+EXPORT_SYMBOL(evtchn_get_peercontext);
 
 /* Replace below when a hypercall is available to get the domid. */
 domid_t get_domid(void)
@@ -294,6 +300,7 @@  domid_t get_domid(void)
 
     return domid;
 }
+EXPORT_SYMBOL(get_domid);
 
 /*
  * Local variables: