* how can i add a kernel function ?
@ 2000-10-02 12:35 BenHanokh Gabriel
2000-10-02 12:51 ` Tigran Aivazian
0 siblings, 1 reply; 3+ messages in thread
From: BenHanokh Gabriel @ 2000-10-02 12:35 UTC (permalink / raw)
To: linux-mm
hi
i'm trying to add a function of my own to my copy of fs/buffer.c
how can i export the symbol ?
THX
/gabi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how can i add a kernel function ?
2000-10-02 12:35 how can i add a kernel function ? BenHanokh Gabriel
@ 2000-10-02 12:51 ` Tigran Aivazian
2000-10-02 12:59 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Tigran Aivazian @ 2000-10-02 12:51 UTC (permalink / raw)
To: BenHanokh Gabriel; +Cc: linux-mm
On Mon, 2 Oct 2000, BenHanokh Gabriel wrote:
> hi
>
> i'm trying to add a function of my own to my copy of fs/buffer.c
>
> how can i export the symbol ?
add an entry to kernel/ksyms.c like this:
/* BenHakokh's function to do .... */
EXPORT_SYMBOL(bhg_doit);
also, make sure that the declaration of the function is visible to
kernel/ksyms.c.
Regards,
Tigran
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: how can i add a kernel function ?
2000-10-02 12:51 ` Tigran Aivazian
@ 2000-10-02 12:59 ` Jeff Garzik
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Garzik @ 2000-10-02 12:59 UTC (permalink / raw)
To: Tigran Aivazian; +Cc: BenHanokh Gabriel, linux-mm, linux-kbuild
On Mon, 2 Oct 2000, Tigran Aivazian wrote:
> On Mon, 2 Oct 2000, BenHanokh Gabriel wrote:
>
> > hi
> >
> > i'm trying to add a function of my own to my copy of fs/buffer.c
> >
> > how can i export the symbol ?
>
> add an entry to kernel/ksyms.c like this:
Not specifically related to BenHanokh Gabriel's problem, but I wanted
to take this opportunity to point out that we want to move away from
putting all exported symbols in one file. Linus prefers that the
symbols are exported from the files in which they are declared.
Eventually we want to do away with the distinction of O_OBJS and
OX_OBJS, and just treat all files as OX_OBJS. Linus suggested I look
into this but there were higher priority items. Maybe some of the
kbuild guys will tackle it...
Jeff
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-10-02 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-10-02 12:35 how can i add a kernel function ? BenHanokh Gabriel
2000-10-02 12:51 ` Tigran Aivazian
2000-10-02 12:59 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox