[PATCH] Make em(4) use device sysctl tree

Maxime Henrion mux at freebsd.org
Tue Oct 19 16:50:06 PDT 2004


Ackerman, Tony wrote:
> Bruce,
> 	Aren't the calls to sysctl_ctx_free() still required?


They aren't required because the sysctl tree and the sysctl context are
both created by the newbus framework, and also destroyed by the said
framework if a device detaches.  However, your comment made me notice
that Bruce forgot to remove the sysctl_ctx and sysctl_tree fields of the
softc in his patch. :-)

Cheers,
Maxime
> -----Original Message-----
> From: Bruce M Simpson [mailto:bms at spc.org] 
> Sent: Friday, October 15, 2004 3:21 PM
> To: freebsd-net at FreeBSD.org
> Cc: tackerman at FreeBSD.org; freebsdnic at mailbox.cps.intel.com;
> mux at FreeBSD.org
> Subject: [PATCH] Make em(4) use device sysctl tree
> 
> Here is a non-critical patch to bring em(4) into line with other
> drivers, by using the sysctl tree created for each device by the
> bus framework.
> 
> Please review; Thanks.
> BMS
> _______________________________________________
> freebsd-net at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at freebsd.org"


More information about the freebsd-net mailing list