From owner-freebsd-net@FreeBSD.ORG Tue Dec 16 20:33:22 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F5631065673 for ; Tue, 16 Dec 2008 20:33:22 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 4B6F98FC22 for ; Tue, 16 Dec 2008 20:33:22 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1986880yxb.13 for ; Tue, 16 Dec 2008 12:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=donAx/ZT0hfB1teEYzwIF3gVVrpqrhLyUCCnJAfJKZk=; b=tucslF95zrh775AS0rsP3liwmiMo3Z3Rprcjf501DIkka2XdvyyQ2k09g9NjB994bU Uo74n60W1mvn7E8fYG0my/KYJPUg7NcWAB0N7pEY6u+dtlclDRDyzkGoKqEfRdwERxei NC6eggKxUyx6pRJoLUMVtgP6trF5bSM6EGkRA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=KMTq4kJAFhGNbKUzBAbxR+D8y/X/JjJiYshXUZCm5rr32GkII/hkjkmDPA2Sh+KgwD Fq2dFHP4HH435vcsHI3wkhNxhTKdPUmDhWCn2OXGpAdg55HabVDMPc7ivKcc+x4QDaaS HG+z3ABXtvsZKX4t46Fv/bM8qEHajgFI0YhQM= Received: by 10.100.125.12 with SMTP id x12mr6056573anc.4.1229459601463; Tue, 16 Dec 2008 12:33:21 -0800 (PST) Received: from ?192.168.2.2? (cpe-70-112-179-136.austin.res.rr.com [70.112.179.136]) by mx.google.com with ESMTPS id c37sm13440722ana.57.2008.12.16.12.33.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 16 Dec 2008 12:33:21 -0800 (PST) From: Ferner Cilloniz To: freebsd-net@freebsd.org Content-Type: text/plain Date: Tue, 16 Dec 2008 14:33:18 +0000 Message-Id: <1229437998.4942.2.camel@mobiliare.Belkin> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit Subject: working directory within kernel code X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 20:33:22 -0000 I am trying to determine the current working directory when a system call is issued. im interested in determining this from a kernel module. however, because system calls are only given a thread* and a void*, which gets casted, is there any way i find out the cwd? thanks. -- Cilloniz Bicchi, Ferner Research Assistant Dept. of Computer Sciences The University of Texas at Austin http://www.cs.utexas.edu/~fernercc fernercc@cs.utexas.edu