[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how can i add a kernel function ?



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/