From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 3 14:35:32 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29A3C1065676 for ; Wed, 3 Dec 2008 14:35:32 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.169]) by mx1.freebsd.org (Postfix) with ESMTP id F2E088FC1B for ; Wed, 3 Dec 2008 14:35:28 +0000 (UTC) (envelope-from bsd.quest@googlemail.com) Received: by wf-out-1314.google.com with SMTP id 24so3781236wfg.7 for ; Wed, 03 Dec 2008 06:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=IIucYgSvqtv44yvD2RrQYOMFJXmA+25lM5WqwUw/BSw=; b=ICr67KJqYAZY7y7jn01qnCssomrknPp9H/h2Sk3s7z+fdhaiNmM/mp7/9MMeWWEBsa 4LImsRBca6gB1omj7Mno5qzvRkp9vXzPOO2U4Xv6EPimpA7FUULVGAH1wVH3oY+Rwo+w L51bCW+QQgtmkZQNozRUuoAoc/KSZ5DHoof1c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=k8CSyg/GgKLQ8G3SAzoZ+c2kSyCrtIYHB7z1Mnjmo6uLiNeC2Oe4OeXoTtRlPfjCXD 1DEgQyFVV0RoSnIXq4QpxDE9Lc90bhfZuerXmDzlK5u5IYKweaHyVfHcDVGqlxzwL/55 r9Zen0P2/5xrrutnoTRWJw/iRKkF5y7O9QIUE= Received: by 10.114.177.1 with SMTP id z1mr8223752wae.68.1228314927753; Wed, 03 Dec 2008 06:35:27 -0800 (PST) Received: by 10.114.76.4 with HTTP; Wed, 3 Dec 2008 06:35:27 -0800 (PST) Message-ID: <671bb5fc0812030635s1fd7fe4frc1840a85e87b4047@mail.gmail.com> Date: Wed, 3 Dec 2008 15:35:27 +0100 From: "Alexej Sokolov" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: vm_map_entry for kernel virtual addres X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 14:35:32 -0000 Hello, If I allocate memory from a kernel module: MALLOC(addr, vm_offset_t, PAGE_SIZE, M_DEVBUF, M_WAITOK | M_ZERO); how can I get a pointer to vm_map_entry structure which describes the memory region where "addr" is ? Thanks, Alexey