All of lore.kernel.org
 help / color / mirror / Atom feed
* seq_open, et. al. are not exported for modules
@ 2001-11-29 19:39 Tommy Reynolds
  2001-11-29 20:08 ` Tommy Reynolds
  0 siblings, 1 reply; 2+ messages in thread
From: Tommy Reynolds @ 2001-11-29 19:39 UTC (permalink / raw)
  To: Alexander Viro; +Cc: Linux Kernel List

[-- Attachment #1: Type: text/plain, Size: 1131 bytes --]

Alex,

The patch below, relative to 2.4.16, exports the seq_FOO symbols so they can be
used from a loadable kernel module.

BTW: could the "kmalloc()" calls be safely changed to "vmalloc()"?

--- linux/kernel/ksyms.c.orig	Thu Nov 29 13:14:10 2001
+++ linux/kernel/ksyms.c	Thu Nov 29 13:15:29 2001
@@ -46,6 +46,7 @@
 #include <linux/tty.h>
 #include <linux/in6.h>
 #include <linux/completion.h>
+#include <linux/seq_file.h>
 #include <asm/checksum.h>
 
 #if defined(CONFIG_PROC_FS)
@@ -559,3 +560,11 @@ EXPORT_SYMBOL(init_task_union);
 
 EXPORT_SYMBOL(tasklist_lock);
 EXPORT_SYMBOL(pidhash);
+
+/* Sequential file systems */
+
+EXPORT_SYMBOL(seq_open);
+EXPORT_SYMBOL(seq_read);
+EXPORT_SYMBOL(seq_lseek);
+EXPORT_SYMBOL(seq_release);
+EXPORT_SYMBOL(seq_escape);


---------------------------------------------+-----------------------------
Tommy Reynolds                               | mailto: <reynolds@redhat.com>
Red Hat, Inc., Embedded Development Services | Phone:  +1.256.704.9286
307 Wynn Drive NW, Huntsville, AL 35805 USA  | FAX:    +1.256.837.3839
Senior Software Developer                    | Mobile: +1.919.641.2923

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-11-29 20:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-29 19:39 seq_open, et. al. are not exported for modules Tommy Reynolds
2001-11-29 20:08 ` Tommy Reynolds

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.