From owner-freebsd-current@freebsd.org Tue Oct 17 22:42:07 2017 Return-Path: Delivered-To: freebsd-current@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 B97FAE49868 for ; Tue, 17 Oct 2017 22:42:07 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 97CD51C35 for ; Tue, 17 Oct 2017 22:42:07 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 6c8cb318-b38c-11e7-a938-4f970e858fdb X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 6c8cb318-b38c-11e7-a938-4f970e858fdb; Tue, 17 Oct 2017 22:42:16 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v9HMg03l004528; Tue, 17 Oct 2017 16:42:00 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1508280119.57370.20.camel@freebsd.org> Subject: Re: pfind_locked(pid) fails when in a jail? From: Ian Lepore To: Rick Macklem , Mateusz Guzik Cc: "freebsd-current@freebsd.org" , "fabian.freyer@physik.tu-berlin.de" , "mjoras@freebsd.org" Date: Tue, 17 Oct 2017 16:41:59 -0600 In-Reply-To: References: <1508195986.74236.6.camel@freebsd.org> <20171016233912.7n6rosak5a5tzcbz@mguzik> <1508255488.74236.29.camel@freebsd.org> , <20171017171034.dyo74lrye6ds6ggp@mguzik> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Oct 2017 22:42:07 -0000 On Tue, 2017-10-17 at 21:26 +0000, Rick Macklem wrote: > Mateusz Guzik wrote: > [lots of stuff snipped] > > > > I proposed registration of per-process callbacks, not filtering. > > The code would just walk the list/table/whatever and call everything on > > it - they asked for it. > Yep, this would work for the NFSv4 client. > Way back when, all I did in OpenBSD was add a function pointer to "struct proc" > that was normally NULL, but set to a function in the NFS client when an NFSv4 > Open was done for the process. > > I suspect you'd want something like a linked list, so that multiple "users" could register callback functions upon exit or ... > > rick FYI, I'm dropping out of this conversation, not because I'm out of opinions, but for some reason I'm not getting the emails from Mateusz that you're replying to, and now so much context is snipped that I don't know what's being said by whom. -- Ian