mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: corbet@lwn.net (Jonathan Corbet)
To: linux-kernel@vger.kernel.org
Cc: Greg KH <greg@kroah.com>, torvalds@osdl.org
Subject: Re: [PATCH] Export new char dev functions
Date: Tue, 16 Sep 2003 20:36:30 -0600	[thread overview]
Message-ID: <20030917023630.24595.qmail@lwn.net> (raw)
In-Reply-To: Your message of "Tue, 16 Sep 2003 16:57:30 PDT." <20030916235729.GA6198@kroah.com>

> 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);

  reply	other threads:[~2003-09-17  2:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-16 18:18 Jonathan Corbet
2003-09-16 23:57 ` Greg KH
2003-09-17  2:36   ` Jonathan Corbet [this message]
2003-09-17  2:46     ` Arnaldo Carvalho de Melo
2003-09-17  2:49     ` John Levon
2003-09-17 16:36       ` Jonathan Corbet
2003-09-17 22:45         ` Jeff Garzik
2003-09-17 23:03           ` Jonathan Corbet
2003-09-17 23:09             ` Jeff Garzik
2003-09-17 17:22     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030917023630.24595.qmail@lwn.net \
    --to=corbet@lwn.net \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®