From owner-freebsd-hackers@FreeBSD.ORG Thu May 6 06:44:50 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 36755106567A for ; Thu, 6 May 2010 06:44:50 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id C0A3A8FC1F for ; Thu, 6 May 2010 06:44:49 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so29925eyd.9 for ; Wed, 05 May 2010 23:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=HZZ1BQ8hmH9npcJ/xqvy85Icb71XKNoeA82Nm02puXI=; b=LB0V8ktI0rm5J4nKrgFhL8nneHdtGAzTCrmyMojo5qRvj7rueo4nW/CwBsbN8YJrHH /lKXpZrMK4LOUrxUtKdfws4Cb91NlQQ0N9cAt5eFKCYQ031OYFJnV483f2TYR2tGQ8Yj 6TDLfEBRTiAU59g6CVavJIKpvEq0tlc5G656g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZfAS2XG8YBGULS/kFhjanvB6d+5PxLJmFcXvMB5wqBRlrMCG8rU9aem1zFZ+0mZthy 3XuiABPYDrzm5b3PxCK7lwEuCTcXDaMmWurSE23VWxosCYuKk0SNDx/22qiWV4dQG7Zw 1w58pjUuvUko/85jALkkk+qGCdvLhrNRxv7r0= MIME-Version: 1.0 Received: by 10.213.55.76 with SMTP id t12mr3172174ebg.3.1273128283356; Wed, 05 May 2010 23:44:43 -0700 (PDT) Received: by 10.213.33.18 with HTTP; Wed, 5 May 2010 23:44:43 -0700 (PDT) Date: Thu, 6 May 2010 08:44:43 +0200 Message-ID: From: =?ISO-8859-1?Q?Fernando_Apestegu=EDa?= To: FreeBSD Hackers Content-Type: text/plain; charset=ISO-8859-1 Subject: Converting pointer to vm_offset_t 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: Thu, 06 May 2010 06:44:50 -0000 Hi all, Is there a way to convert a (char *) pointer (or in general any pointer) to a vm_offset_t type? I was thinking of sbuf_copyin, but I'm dealing with a process different from current in kernel. I want to copy the pointer to kernel space using a struct uio. Thanks in advance.