trans_virtio.c (3eb66e91a25497065c5322b1268cbc3953642227) trans_virtio.c (d4548543fc4ece56c6f04b8586f435fb4fd84c20)
1/*
2 * The Virtio 9p transport driver
3 *
4 * This is a block based transport driver based on the lguest block driver
5 * code.
6 *
7 * Copyright (C) 2007, 2008 Eric Van Hensbergen, IBM Corporation
8 *

--- 768 unchanged lines hidden (view full) ---

777 .maxsize = PAGE_SIZE * (VIRTQUEUE_NUM - 3),
778 .def = 1,
779 .owner = THIS_MODULE,
780};
781
782/* The standard init function */
783static int __init p9_virtio_init(void)
784{
1/*
2 * The Virtio 9p transport driver
3 *
4 * This is a block based transport driver based on the lguest block driver
5 * code.
6 *
7 * Copyright (C) 2007, 2008 Eric Van Hensbergen, IBM Corporation
8 *

--- 768 unchanged lines hidden (view full) ---

777 .maxsize = PAGE_SIZE * (VIRTQUEUE_NUM - 3),
778 .def = 1,
779 .owner = THIS_MODULE,
780};
781
782/* The standard init function */
783static int __init p9_virtio_init(void)
784{
785 int rc;
786
785 INIT_LIST_HEAD(&virtio_chan_list);
786
787 v9fs_register_trans(&p9_virtio_trans);
787 INIT_LIST_HEAD(&virtio_chan_list);
788
789 v9fs_register_trans(&p9_virtio_trans);
788 return register_virtio_driver(&p9_virtio_drv);
790 rc = register_virtio_driver(&p9_virtio_drv);
791 if (rc)
792 v9fs_unregister_trans(&p9_virtio_trans);
793
794 return rc;
789}
790
791static void __exit p9_virtio_cleanup(void)
792{
793 unregister_virtio_driver(&p9_virtio_drv);
794 v9fs_unregister_trans(&p9_virtio_trans);
795}
796
797module_init(p9_virtio_init);
798module_exit(p9_virtio_cleanup);
799
800MODULE_DEVICE_TABLE(virtio, id_table);
801MODULE_AUTHOR("Eric Van Hensbergen <ericvh@gmail.com>");
802MODULE_DESCRIPTION("Virtio 9p Transport");
803MODULE_LICENSE("GPL");
795}
796
797static void __exit p9_virtio_cleanup(void)
798{
799 unregister_virtio_driver(&p9_virtio_drv);
800 v9fs_unregister_trans(&p9_virtio_trans);
801}
802
803module_init(p9_virtio_init);
804module_exit(p9_virtio_cleanup);
805
806MODULE_DEVICE_TABLE(virtio, id_table);
807MODULE_AUTHOR("Eric Van Hensbergen <ericvh@gmail.com>");
808MODULE_DESCRIPTION("Virtio 9p Transport");
809MODULE_LICENSE("GPL");