Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 29 Nov 2001 15:09:36 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 29 Nov 2001 15:09:27 -0500 Received: from nat-pool-hsv.redhat.com ([12.150.234.132]:16652 "EHLO dhcp-177.hsv.redhat.com") by vger.kernel.org with ESMTP id ; Thu, 29 Nov 2001 15:09:12 -0500 Date: Thu, 29 Nov 2001 14:08:35 -0600 From: Tommy Reynolds To: Alexander Viro Cc: linux-kernel@vger.kernel.org Subject: Re: seq_open, et. al. are not exported for modules Message-Id: <20011129140835.26e8e40e.reynolds@redhat.com> In-Reply-To: <20011129133911.4816fe2b.reynolds@redhat.com> In-Reply-To: <20011129133911.4816fe2b.reynolds@redhat.com> Organization: Red Hat Software, Inc. / Embedded Development X-Mailer: Sylpheed version 0.6.5cvs3 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: Nr)Jjr wrote: > Alex, > > The patch below, relative to 2.4.16, exports the seq_FOO symbols so they can be > used from a loadable kernel module. The patch omitted "seq_printf" ;-( This one doesn't: --- linux/kernel/ksyms.c.orig Thu Nov 29 13:14:10 2001 +++ linux/kernel/ksyms.c Thu Nov 29 13:58:27 2001 @@ -46,6 +46,7 @@ #include #include #include +#include #include #if defined(CONFIG_PROC_FS) @@ -559,3 +560,12 @@ 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); +EXPORT_SYMBOL(seq_printf); ---------------------------------------------+----------------------------- Tommy Reynolds | mailto: 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 --=.6KI)B)fOEAt3rX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iEYEARECAAYFAjwGlcgACgkQWEn3bOOMcuqjowCfbxhw62uDZZQjtINZE+2dlY/8 OZAAnj+2ZUkwM54cppIjCDZdUyLwPZ6t =4O8M -----END PGP SIGNATURE----- --=.6KI)B)fOEAt3rX-- - 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/