Re: how to export a symbol so that I can use it in a module

From: Ben Greear (greearb@candelatech.com)
Date: Mon Nov 11 2002 - 17:02:29 EST


Folkert van Heusden wrote:
> Hi,
>
> I've added a function "create_tcp_port_number" to net/core/utils.c
> like this:
>
> int create_tcp_port_number(void)
> {
> /* blah blah */
> }
> EXPORT_SYMBOL(create_tcp_port_number);

Try putting the EXPORT_SYMBOL macro in net/netsyms.c

Ben

-- 
Ben Greear <greearb@candelatech.com>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear

- 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/



This archive was generated by hypermail 2b29 : Fri Nov 15 2002 - 22:00:23 EST