aboutsummaryrefslogtreecommitdiffstats
path: root/net/9p/trans_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/9p/trans_fd.c')
-rw-r--r--net/9p/trans_fd.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c
index cdf137af7adc..6a32ffdb9429 100644
--- a/net/9p/trans_fd.c
+++ b/net/9p/trans_fd.c
@@ -1629,6 +1629,7 @@ static struct p9_trans_module p9_tcp_trans = {
1629 .maxsize = MAX_SOCK_BUF, 1629 .maxsize = MAX_SOCK_BUF,
1630 .def = 1, 1630 .def = 1,
1631 .create = p9_trans_create_tcp, 1631 .create = p9_trans_create_tcp,
1632 .owner = THIS_MODULE,
1632}; 1633};
1633 1634
1634static struct p9_trans_module p9_unix_trans = { 1635static struct p9_trans_module p9_unix_trans = {
@@ -1636,6 +1637,7 @@ static struct p9_trans_module p9_unix_trans = {
1636 .maxsize = MAX_SOCK_BUF, 1637 .maxsize = MAX_SOCK_BUF,
1637 .def = 0, 1638 .def = 0,
1638 .create = p9_trans_create_unix, 1639 .create = p9_trans_create_unix,
1640 .owner = THIS_MODULE,
1639}; 1641};
1640 1642
1641static struct p9_trans_module p9_fd_trans = { 1643static struct p9_trans_module p9_fd_trans = {
@@ -1643,6 +1645,7 @@ static struct p9_trans_module p9_fd_trans = {
1643 .maxsize = MAX_SOCK_BUF, 1645 .maxsize = MAX_SOCK_BUF,
1644 .def = 0, 1646 .def = 0,
1645 .create = p9_trans_create_fd, 1647 .create = p9_trans_create_fd,
1648 .owner = THIS_MODULE,
1646}; 1649};
1647 1650
1648int p9_trans_fd_init(void) 1651int p9_trans_fd_init(void)
@@ -1659,4 +1662,10 @@ int p9_trans_fd_init(void)
1659 1662
1660 return 0; 1663 return 0;
1661} 1664}
1662EXPORT_SYMBOL(p9_trans_fd_init); 1665
1666void p9_trans_fd_exit(void)
1667{
1668 v9fs_unregister_trans(&p9_tcp_trans);
1669 v9fs_unregister_trans(&p9_unix_trans);
1670 v9fs_unregister_trans(&p9_fd_trans);
1671}