From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 3 13:40:29 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org 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 5C72916A41F for ; Tue, 3 Jul 2007 13:40:29 +0000 (UTC) (envelope-from n.cormier@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id 1C94F13C468 for ; Tue, 3 Jul 2007 13:40:28 +0000 (UTC) (envelope-from n.cormier@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so3687486pyb for ; Tue, 03 Jul 2007 06:40:28 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Oq+6VKw8rsiWo1Ge5eRL6UnCdibZpCxlOT1f0Z+VvaIri7BbnRQU1Oh7punnrNVJk2apQhkoxnhiqKGGYnfpDYaW+8g2RkBhha7VjP6v0+vGD3UN3bzWf4Rea8tjecfRXuozzPOpQyLTFKSM8Sdkpqalt1IvNs6roNi73ZxtjEA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d9YC+xDJxtubyrn0IFFQ22gn3bNRYRMC7pH3kEJz4UD9LSY70vMxTLXunwHJX80mD+wFBV3pNp8c3enVdIFF6gCnxex4EufykyDxlc7k6dnCNZGhfO0bdlJV+E9WMJkCxAU2YqRJ+cZmwwly0jkUiMQ6Rq9SYU9Iz3JlT9TabsQ= Received: by 10.35.63.2 with SMTP id q2mr7870639pyk.1183470028335; Tue, 03 Jul 2007 06:40:28 -0700 (PDT) Received: by 10.35.40.11 with HTTP; Tue, 3 Jul 2007 06:40:28 -0700 (PDT) Message-ID: Date: Tue, 3 Jul 2007 15:40:28 +0200 From: "Nicolas Cormier" To: freebsd-hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: p_vmspace in syscall 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: Tue, 03 Jul 2007 13:40:29 -0000 On 7/2/07, Nicolas Cormier wrote: > Hi, > I am trying to map some data allocated in kernel to a user process > (via a syscall). > I need the proc's vmspace, but the value of p_vmspace of the input > proc argument is NULL ... > How can I get a valid vmspace ? > > Thanks ! Ok, syscall function passed a proc* as arguments, I don't know where this proc* come from but it works with: struct thread *td = curthread; p = td->td_proc; -- Nicolas Cormier