Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Aug 2019 17:56:46 +0800
From:      Liang Zhuo <brightiup.zhuo@gmail.com>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Force kernel epoch calls
Message-ID:  <CACqxGXWSPNHhyKatPvjhVYzXiTu9BVotHTOejgS21BT9j_HQmg@mail.gmail.com>
In-Reply-To: <c582aef8-c53b-dbb7-e413-16a0faf78f27@selasky.org>
References:  <CACqxGXWZVeFK8kUpRaPtArnvZ5GD6CR44LJBHLCeP-KPJdSPNg@mail.gmail.com> <c582aef8-c53b-dbb7-e413-16a0faf78f27@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks for the quick reply.

Actually, I just need some tricks
in *userspace *to force the kernel to
call those callbacks or some methods
which could inform the kernel to call
the callbacks.

I am not writing a driver or kernel patch,
it's just a userspace program which could
escalate privilege to root.

Thanks,
Brightiup

Hans Petter Selasky <hps@selasky.org> =E4=BA=8E2019=E5=B9=B48=E6=9C=887=E6=
=97=A5=E5=91=A8=E4=B8=89 =E4=B8=8B=E5=8D=885:36=E5=86=99=E9=81=93=EF=BC=9A

> On 2019-08-07 11:11, Liang Zhuo wrote:
> > But I need to control the time of freeing
> > of those objects as better as synchronization.
> > Do do I have any methods to force these calls
> > in epoch system to be called in userspace?
>
> Did you have a look at the recently added epoch_drain_callbacks() functio=
n?
>
> --HPS
>



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