Messages in this thread Patch in this message | | | Subject | Re: [PATCH] Export new char dev functions | From | (Jonathan Corbet) | Date | Tue, 16 Sep 2003 20:36:30 -0600 |
| |
> How about just exporting them in the files where they are declared? I > do not think we want the ksyms.c file to grow anymore.
Hmm, I figured somebody would say something like that...grumble...mutter... ...complain...gripe...moan...new patch appended...
Of course, there are other exports from that file (i.e. register_chrdev()); are we actively trying to shrink ksyms.c?
jon
Jonathan Corbet Executive editor, LWN.net corbet@lwn.net
--- test5-vanilla/fs/char_dev.c Mon Sep 8 13:50:01 2003 +++ test5/fs/char_dev.c Wed Sep 17 10:19:18 2003 @@ -445,3 +445,16 @@ kset_register(&kset_dynamic); cdev_map = kobj_map_init(base_probe, &cdev_subsys); } + + +/* Let modules do char dev stuff */ +EXPORT_SYMBOL(register_chrdev_region); +EXPORT_SYMBOL(unregister_chrdev_region); +EXPORT_SYMBOL(alloc_chrdev_region); +EXPORT_SYMBOL(cdev_init); +EXPORT_SYMBOL(cdev_alloc); +EXPORT_SYMBOL(cdev_get); +EXPORT_SYMBOL(cdev_put); +EXPORT_SYMBOL(cdev_del); +EXPORT_SYMBOL(cdev_add); +EXPORT_SYMBOL(cdev_unmap); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |