From 7e26513307f04800cbac6657c23bb7d8806bd096 Mon Sep 17 00:00:00 2001 From: Sepherosa Ziehau Date: Wed, 2 Apr 2008 11:48:30 +0000 Subject: [PATCH] Use sysctl_ctx in softc --- sys/dev/netif/em/if_em.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/dev/netif/em/if_em.c b/sys/dev/netif/em/if_em.c index d5a966f1e..559fea344 100644 --- a/sys/dev/netif/em/if_em.c +++ b/sys/dev/netif/em/if_em.c @@ -64,7 +64,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $DragonFly: src/sys/dev/netif/em/if_em.c,v 1.65 2008/03/10 12:59:51 sephe Exp $ + * $DragonFly: src/sys/dev/netif/em/if_em.c,v 1.66 2008/04/02 11:48:30 sephe Exp $ * $FreeBSD$ */ /* @@ -568,9 +568,11 @@ em_attach(device_t dev) adapter->num_rx_desc = em_rxd; } - SYSCTL_ADD_INT(NULL, SYSCTL_CHILDREN(adapter->sysctl_tree), OID_AUTO, "rxd", + SYSCTL_ADD_INT(&adapter->sysctl_ctx, + SYSCTL_CHILDREN(adapter->sysctl_tree), OID_AUTO, "rxd", CTLFLAG_RD, &adapter->num_rx_desc, 0, NULL); - SYSCTL_ADD_INT(NULL, SYSCTL_CHILDREN(adapter->sysctl_tree), OID_AUTO, "txd", + SYSCTL_ADD_INT(&adapter->sysctl_ctx, + SYSCTL_CHILDREN(adapter->sysctl_tree), OID_AUTO, "txd", CTLFLAG_RD, &adapter->num_tx_desc, 0, NULL); adapter->hw.autoneg = DO_AUTO_NEG; -- 2.11.4.GIT