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

Ben Greear (greearb@candelatech.com)
Mon, 11 Nov 2002 14:02:29 -0800


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/