Received: by mail.netbsd.org (Postfix, from userid 605) id D0CC485FF1; Mon, 16 May 2016 01:06:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 5F7CA85FF0 for ; Mon, 16 May 2016 01:06:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id 92c6G0A6hvWh for ; Mon, 16 May 2016 01:06:32 +0000 (UTC) Received: from cvs.NetBSD.org (unknown [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 0AF4F85F75 for ; Mon, 16 May 2016 01:06:32 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 05BCFFBBA; Mon, 16 May 2016 01:06:32 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Mon, 16 May 2016 01:06:32 +0000 From: "Ryota Ozaki" Subject: CVS commit: src/sys/net To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20160516010632.05BCFFBBA@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Ryota Ozaki" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: ozaki-r Date: Mon May 16 01:06:31 UTC 2016 Modified Files: src/sys/net: if.c if.h Log Message: Introduce if_get, if_get_byindex and if_put The new API enables to obtain an ifnet object with protected by psref(9). It is intended to be used where an obtained ifnet object is used over sleepable operations. To generate a diff of this commit: cvs rdiff -u -r1.334 -r1.335 src/sys/net/if.c cvs rdiff -u -r1.204 -r1.205 src/sys/net/if.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.