Re: [PATCH 1/4][PoC][RFC] sched: Allow to get() and put() signal struct

From: Krzysztof Opasiak
Date: Thu Oct 19 2017 - 13:33:28 EST




On 10/19/2017 09:34 AM, Greg KH wrote:
On Wed, Oct 18, 2017 at 10:32:27PM +0200, Krzysztof Opasiak wrote:
Allow to get() and put() signal struct from different
parts of kernel core, not only from signal.c.

That says what this does, but not _why_. Who would ever want to have
access to these internal-only functions?


Those functions are exposed because I added rlimit-events context to the signal_struct and because I'm accessing signal struct of subject (process that's being monitored) from context of monitor I need to ensure that this structure won't go away until I release all watchers that were associated with that process.

Best regards,
--
Krzysztof Opasiak
Samsung R&D Institute Poland
Samsung Electronics