From: Juergen Gross Date: Mon, 27 Nov 2023 10:25:17 +0000 (+0100) Subject: Mini-OS: add EXPORT_SYMBOL() instances to netfront.c X-Git-Tag: xen-4.19.0-rc4~17 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=927a76be50d3b8a5dfb394bdd04c352fe118adde;p=mini-os.git Mini-OS: add EXPORT_SYMBOL() instances to netfront.c Add the needed instances of EXPORT_SYMBOL() to netfront.c. Signed-off-by: Juergen Gross --- diff --git a/netfront.c b/netfront.c index 164fdc6..7de2498 100644 --- a/netfront.c +++ b/netfront.c @@ -370,16 +370,19 @@ out: err: return dev; } +EXPORT_SYMBOL(init_netfront); char *netfront_get_netmask(struct netfront_dev *dev) { return dev->mask ? strdup(dev->mask) : NULL; } +EXPORT_SYMBOL(netfront_get_netmask); char *netfront_get_gateway(struct netfront_dev *dev) { return dev->gw ? strdup(dev->gw) : NULL; } +EXPORT_SYMBOL(netfront_get_gateway); static struct netfront_dev *_init_netfront(struct netfront_dev *dev) { @@ -625,6 +628,7 @@ int netfront_tap_open(char *nodename) { file->dev = dev; return dev->fd; } +EXPORT_SYMBOL(netfront_tap_open); #endif void shutdown_netfront(struct netfront_dev *dev) @@ -654,6 +658,7 @@ void shutdown_netfront(struct netfront_dev *dev) free_netfront(dev); } } +EXPORT_SYMBOL(shutdown_netfront); static int _shutdown_netfront(struct netfront_dev *dev) { @@ -813,6 +818,7 @@ void netfront_xmit(struct netfront_dev *dev, const unsigned char *data, int len) network_tx_buf_gc(dev); local_irq_restore(flags); } +EXPORT_SYMBOL(netfront_xmit); #ifdef HAVE_LIBC ssize_t netfront_receive(struct netfront_dev *dev, unsigned char *data, size_t len) @@ -840,6 +846,7 @@ ssize_t netfront_receive(struct netfront_dev *dev, unsigned char *data, size_t l return dev->rlen; } +EXPORT_SYMBOL(netfront_receive); #endif void netfront_set_rx_handler(struct netfront_dev *dev,