trans_virtio.c (9fec6060d9e48ed7db0dac0e16d0f0f0e615b7f6) | trans_virtio.c (72029fe85d8d060b3f966f2dbc36b3c75b5a6532) |
---|---|
1/* 2 * The Guest 9p transport driver 3 * 4 * This is a block based transport driver based on the lguest block driver 5 * code. 6 * 7 */ 8/* --- 514 unchanged lines hidden (view full) --- 523 .remove = p9_virtio_remove, 524}; 525 526static struct p9_trans_module p9_virtio_trans = { 527 .name = "virtio", 528 .create = p9_virtio_create, 529 .maxsize = PAGE_SIZE*16, 530 .def = 0, | 1/* 2 * The Guest 9p transport driver 3 * 4 * This is a block based transport driver based on the lguest block driver 5 * code. 6 * 7 */ 8/* --- 514 unchanged lines hidden (view full) --- 523 .remove = p9_virtio_remove, 524}; 525 526static struct p9_trans_module p9_virtio_trans = { 527 .name = "virtio", 528 .create = p9_virtio_create, 529 .maxsize = PAGE_SIZE*16, 530 .def = 0, |
531 .owner = THIS_MODULE, |
|
531}; 532 533/* The standard init function */ 534static int __init p9_virtio_init(void) 535{ 536 int count; 537 538 for (count = 0; count < MAX_9P_CHAN; count++) 539 channels[count].initialized = false; 540 541 v9fs_register_trans(&p9_virtio_trans); 542 return register_virtio_driver(&p9_virtio_drv); 543} 544 545static void __exit p9_virtio_cleanup(void) 546{ 547 unregister_virtio_driver(&p9_virtio_drv); | 532}; 533 534/* The standard init function */ 535static int __init p9_virtio_init(void) 536{ 537 int count; 538 539 for (count = 0; count < MAX_9P_CHAN; count++) 540 channels[count].initialized = false; 541 542 v9fs_register_trans(&p9_virtio_trans); 543 return register_virtio_driver(&p9_virtio_drv); 544} 545 546static void __exit p9_virtio_cleanup(void) 547{ 548 unregister_virtio_driver(&p9_virtio_drv); |
549 v9fs_unregister_trans(&p9_virtio_trans); |
|
548} 549 550module_init(p9_virtio_init); 551module_exit(p9_virtio_cleanup); 552 553MODULE_DEVICE_TABLE(virtio, id_table); 554MODULE_AUTHOR("Eric Van Hensbergen <ericvh@gmail.com>"); 555MODULE_DESCRIPTION("Virtio 9p Transport"); 556MODULE_LICENSE("GPL"); | 550} 551 552module_init(p9_virtio_init); 553module_exit(p9_virtio_cleanup); 554 555MODULE_DEVICE_TABLE(virtio, id_table); 556MODULE_AUTHOR("Eric Van Hensbergen <ericvh@gmail.com>"); 557MODULE_DESCRIPTION("Virtio 9p Transport"); 558MODULE_LICENSE("GPL"); |