From owner-freebsd-drivers@FreeBSD.ORG Mon May 13 11:23:18 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CA9218E1 for ; Mon, 13 May 2013 11:23:18 +0000 (UTC) (envelope-from odeds@mellanox.com) Received: from eu1sys200aog115.obsmtp.com (eu1sys200aog115.obsmtp.com [207.126.144.139]) by mx1.freebsd.org (Postfix) with ESMTP id 09922ACF for ; Mon, 13 May 2013 11:23:17 +0000 (UTC) Received: from MTLCAS02.mtl.com ([193.47.165.155]) (using TLSv1) by eu1sys200aob115.postini.com ([207.126.147.11]) with SMTP ID DSNKUZDNBiOqYaj1aWWmCVE6YH6ORZHWUsRb@postini.com; Mon, 13 May 2013 11:23:18 UTC Received: from MTLDAG01.mtl.com ([10.0.8.75]) by MTLCAS02.mtl.com ([10.0.8.72]) with mapi id 14.03.0123.003; Mon, 13 May 2013 14:22:28 +0300 From: Oded Shanoon To: "freebsd-drivers@freebsd.org" Subject: Passing Parametersto Device Drivers and ethtool like functionality Thread-Topic: Passing Parametersto Device Drivers and ethtool like functionality Thread-Index: Ac5Py7HnDHlEEoJdTc+kH8+xzRXw8A== Date: Mon, 13 May 2013 11:22:27 +0000 Message-ID: <058596FC127BDB469D7D60F04E37C63F73456337@MTLDAG01.mtl.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.13.1] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 May 2013 11:23:18 -0000 Hi, I'm new to FreeBSD. I went over "FreeBSD device drivers" book and saw that the only way to pass= parameters to modules is by using sysctl. Is this correct? Is there no other way to pass parameters when I load my driver (dynamically= )? Another question I have is - what's the equivalent in FreeBSD for Linux's e= thtool? I googled it and found that not all functionalities of ethtool are implemen= ted with ifconfig. Is this correct? Do you know if I can find a detailed doc specifying the equivalent FreeBSD = commands for Linux ethtool? Thanks, Oded Shanoon Ofed-FreeBSD team Mellanox Technologies, Raanana