lkml.org 
[lkml]   [2003]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patches in this message
    /
    SubjectRe: [PATCH] Export new char dev functions
    From
    Date
    > John Levon sez:
    > > Of course, there are other exports from that file (i.e. register_chrdev());
    > > are we actively trying to shrink ksyms.c?
    >
    > I think we are, yes. ksyms.c just makes life harder.

    OK, here is a version that evacutates all of fs/char_dev.c's functions out
    of ksyms.c. And that, probably, is about all the bandwidth this little
    patch is worth...

    jon

    diff -urN -X dontdiff test5-vanilla/fs/char_dev.c test5/fs/char_dev.c
    --- test5-vanilla/fs/char_dev.c Mon Sep 8 13:50:01 2003
    +++ test5/fs/char_dev.c Wed Sep 17 10:45:46 2003
    @@ -445,3 +445,18 @@
    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);
    +EXPORT_SYMBOL(register_chrdev);
    +EXPORT_SYMBOL(unregister_chrdev);
    diff -urN -X dontdiff test5-vanilla/kernel/ksyms.c test5/kernel/ksyms.c
    --- test5-vanilla/kernel/ksyms.c Wed Sep 17 01:58:05 2003
    +++ test5/kernel/ksyms.c Wed Sep 17 10:45:46 2003
    @@ -348,8 +348,6 @@
    EXPORT_SYMBOL(unlock_page);

    /* device registration */
    -EXPORT_SYMBOL(register_chrdev);
    -EXPORT_SYMBOL(unregister_chrdev);
    EXPORT_SYMBOL(register_blkdev);
    EXPORT_SYMBOL(unregister_blkdev);
    EXPORT_SYMBOL(tty_register_driver);
    -
    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/
    \
     
     \ /
      Last update: 2005-03-22 13:48    [W:0.022 / U:64.512 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site