From owner-freebsd-hackers@freebsd.org Thu Dec 14 21:26:01 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 D99BCE9053C for ; Thu, 14 Dec 2017 21:26:01 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2C5B7A5DC for ; Thu, 14 Dec 2017 21:26:01 +0000 (UTC) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: from pdx.rh.CN85.dnsmgr.net (localhost [127.0.0.1]) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3) with ESMTP id vBELPvRv098977; Thu, 14 Dec 2017 13:25:57 -0800 (PST) (envelope-from freebsd-rwg@pdx.rh.CN85.dnsmgr.net) Received: (from freebsd-rwg@localhost) by pdx.rh.CN85.dnsmgr.net (8.13.3/8.13.3/Submit) id vBELPuWw098976; Thu, 14 Dec 2017 13:25:56 -0800 (PST) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <201712142125.vBELPuWw098976@pdx.rh.CN85.dnsmgr.net> Subject: Re: * current of freebsd In-Reply-To: <201712142104.vBEL4i7s051297@donotpassgo.dyslexicfish.net> To: Jamie Landeg-Jones Date: Thu, 14 Dec 2017 13:25:56 -0800 (PST) CC: freebsd-hackers@freebsd.org, alexandrugoia9@gmail.com X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Thu, 14 Dec 2017 22:37:09 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Dec 2017 21:26:01 -0000 > Alexandru Goia wrote: > > > Greetings, > > > > What is the analog of * current from linux, in freebsd ? > > It's called "CURRENT" and is referenced by the version number it will maintain > when it becomes STABLE - it's currently tagged 12.0-CURRENT, and is available as > "head" in the source code: > > https://svnweb.freebsd.org/base/head/ I believe the person is asking more specifically "what is the name of the kernel variable that points to a the process currently running "this" system call in the kernel, which I believe to be curthread->td_proc which is usually refered to via #define curproc curthread->td_proc -- Rod Grimes rgrimes@freebsd.org