From owner-freebsd-hackers@freebsd.org Mon Oct 16 06:25:46 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B1A4BE2FA45 for ; Mon, 16 Oct 2017 06:25:46 +0000 (UTC) (envelope-from Keith.Owens2@dell.com) Received: from esa2.dell-outbound.iphmx.com (esa2.dell-outbound.iphmx.com [68.232.149.220]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.dell-outbound.iphmx.com", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 78FCC6ECE3 for ; Mon, 16 Oct 2017 06:25:45 +0000 (UTC) (envelope-from Keith.Owens2@dell.com) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dell.com; i=@dell.com; q=dns/txt; s=smtpout; t=1508135146; x=1539671146; h=from:to:subject:date:message-id:mime-version; bh=llqxyAArIomkXl2rSXOzRbq5szgivrDh3u2SXJLZyoA=; b=XeOSyc+eo70RZEhKMnBtakqUXAy1GTUq8WvzhsJxR3o732iLSWIDoJad +LIyBN8kQ/o1D11iN6qtqTeiBw9niGL6UEDsxrYh5OXgXkbhMz5WlX65U Pi5K2NTbeREZ/Gij7ruxRdZbqbTXKkJZObB6DFTuEAEv/KmScPk09TyYd 8=; Received: from esa6.dell-outbound2.iphmx.com ([68.232.154.99]) by esa2.dell-outbound.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2017 01:24:37 -0500 From: "Owens, Keith" Received: from mailuogwhop.emc.com ([168.159.213.141]) by esa6.dell-outbound2.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Oct 2017 12:24:36 +0600 Received: from maildlpprd05.lss.emc.com (maildlpprd05.lss.emc.com [10.253.24.37]) by mailuogwprd01.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v9G6OZfh005807 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Mon, 16 Oct 2017 02:24:36 -0400 X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd01.lss.emc.com v9G6OZfh005807 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=isilon.com; s=jan2013; t=1508135076; bh=i+ECs6J2O9CukNEHgM4fRpAHmCM=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=d2uSclk3wNEybx8ZDwdpuB+MHOQtE+AMijDwRa+tKiwZFzKD4x1gFaewg+jq7FOb4 dkhZKGghT2VP+2+6IHPVTvk8+k0u7Eu7egsdQ/lhaayC5XyFBW45WLLykm3RIoaMiH 4gwQ4yyoAQYiv05l/ZGeXM8E7h9rLzYJPgRMXRDQ= X-DKIM: OpenDKIM Filter v2.4.3 mailuogwprd01.lss.emc.com v9G6OZfh005807 Received: from mailusrhubprd02.lss.emc.com (mailusrhubprd02.lss.emc.com [10.253.24.20]) by maildlpprd05.lss.emc.com (RSA Interceptor) for ; Mon, 16 Oct 2017 02:23:20 -0400 Received: from MXHUB108.corp.emc.com (MXHUB108.corp.emc.com [10.253.58.24]) by mailusrhubprd02.lss.emc.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.0) with ESMTP id v9G6OJDm031049 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL) for ; Mon, 16 Oct 2017 02:24:19 -0400 Received: from MX202CL01.corp.emc.com ([fe80::401b:e935:5cb1:a681]) by MXHUB108.corp.emc.com ([10.253.58.24]) with mapi id 14.03.0352.000; Mon, 16 Oct 2017 02:24:19 -0400 To: "freebsd-hackers@freebsd.org" Subject: How to map a single unmapped BIO? Thread-Topic: How to map a single unmapped BIO? Thread-Index: AdNGR2Xz0DhUfKMJQLSKRmHj5BQz6g== Date: Mon, 16 Oct 2017 06:24:19 +0000 Message-ID: <0A22297308D147479E18AA1807A03807017F2378@MX202CL01.corp.emc.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.32.243.43] MIME-Version: 1.0 X-Sentrion-Hostname: mailusrhubprd02.lss.emc.com X-RSA-Classifications: public Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Oct 2017 06:25:46 -0000 I have a geom that sometimes (very rarely) needs to modify the data in an u= nmapped BIO. Completely removing unmapped support from the entire geom is o= verkill. What is the best way of converting a single unmapped BIO to a mapp= ed address so I can access the data? Basically I want g_io_transient_map_bio(), but that function is static. Dup= licating that code in my geom is not elegant.