Date: Tue, 27 Nov 2012 06:18:07 -0800 (PST) From: Barney Cordoba <barney_cordoba@yahoo.com> To: freebsd-net@freebsd.org Cc: jfvogel@gmail.com Subject: regarding em and lem Message-ID: <1354025887.50656.YahooMailClassic@web121602.mail.ne1.yahoo.com>
next in thread | raw e-mail | index | archive | help
Just a programming note, it would be useful for some cases if the softc/adapter structures for lem and em were synced with all of the common stuff at the top of the structures, so you could access the dev or hw from the softc without having to know which flavor of driver it is. Putting non-common stuff at the end is a good programming practice. It's also not a bad idea to put an identifier in there, such as is_lem, because it's not easy to figure out naturally. BC
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1354025887.50656.YahooMailClassic>