Date: Wed, 7 Aug 2019 18:57:27 +0200 From: Hans Petter Selasky <hps@selasky.org> To: Liang Zhuo <brightiup.zhuo@gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Force kernel epoch calls Message-ID: <d1e339b1-37d2-4c3f-7a94-944b26f7a9dd@selasky.org> In-Reply-To: <CACqxGXWSPNHhyKatPvjhVYzXiTu9BVotHTOejgS21BT9j_HQmg@mail.gmail.com> References: <CACqxGXWZVeFK8kUpRaPtArnvZ5GD6CR44LJBHLCeP-KPJdSPNg@mail.gmail.com> <c582aef8-c53b-dbb7-e413-16a0faf78f27@selasky.org> <CACqxGXWSPNHhyKatPvjhVYzXiTu9BVotHTOejgS21BT9j_HQmg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-08-07 11:56, Liang Zhuo wrote: > 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 Hi, If you want to force these callbacks, you'll need to iterate over all the CPU's and do: GROUPTASK_ENQUEUE(DPCPU_PTR(epoch_cb_task)); --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d1e339b1-37d2-4c3f-7a94-944b26f7a9dd>