Re: netgraph(4) initialization order

From: Julian Elischer <julian_at_elischer.org>
Date: Wed, 05 Jan 2005 15:24:11 -0800
Maksim Yevmenkin wrote:

>-DECLARE_MODULE(netgraph, netgraph_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);
>+SYSINIT(netgraph, SI_SUB_DRIVERS, SI_ORDER_FIRST, ngb_sysinit, NULL);
>+SYSUNINIT(netgraph, SI_SUB_DRIVERS, SI_ORDER_ANY, ngb_sysuninit, NULL);
>
maybe it should be some SI_SUB that is before DRIVERS.

>+DEV_MODULE(netgraph, ngb_mod_event, NULL);
> SYSCTL_NODE(_net, OID_AUTO, graph, CTLFLAG_RW, 0, "netgraph Family");
> SYSCTL_INT(_net_graph, OID_AUTO, abi_version, CTLFLAG_RD, 0, NG_ABI_VERSION,"");
> SYSCTL_INT(_net_graph, OID_AUTO, msg_version, CTLFLAG_RD, 0, NG_VERSION, "");
>  
>
Received on Wed Jan 05 2005 - 22:24:12 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:25 UTC