Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Oct 2017 21:26:48 +0000
From:      Rick Macklem <rmacklem@uoguelph.ca>
To:        Mateusz Guzik <mjguzik@gmail.com>, Ian Lepore <ian@freebsd.org>
Cc:        "freebsd-current@freebsd.org" <freebsd-current@freebsd.org>, "fabian.freyer@physik.tu-berlin.de" <fabian.freyer@physik.tu-berlin.de>, "mjoras@freebsd.org" <mjoras@freebsd.org>
Subject:   Re: pfind_locked(pid) fails when in a jail?
Message-ID:  <YTOPR0101MB21721C11403D4131BC06A556DD4C0@YTOPR0101MB2172.CANPRD01.PROD.OUTLOOK.COM>
In-Reply-To: <20171017171034.dyo74lrye6ds6ggp@mguzik>
References:  <YTOPR0101MB2172A4421C7B012A503230D5DD4F0@YTOPR0101MB2172.CANPRD01.PROD.OUTLOOK.COM> <CAGudoHEvDk0mKCmK59sPM7j-Mt279rLZwTwVazX5ktX=7wD-9Q@mail.gmail.com> <1508195986.74236.6.camel@freebsd.org> <20171016233912.7n6rosak5a5tzcbz@mguzik> <YTOPR0101MB21720E11F5490FC3CE568FF6DD4F0@YTOPR0101MB2172.CANPRD01.PROD.OUTLOOK.COM> <1508255488.74236.29.camel@freebsd.org>, <20171017171034.dyo74lrye6ds6ggp@mguzik>

next in thread | previous in thread | raw e-mail | index | archive | help
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 p=
roc"
that was normally NULL, but set to a function in the NFS client when an NFS=
v4
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=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YTOPR0101MB21721C11403D4131BC06A556DD4C0>