[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: More questions...
Andi Kleen wrote:
> On Mon, Oct 15, 2001 at 03:02:30PM -0700, H. Peter Anvin wrote:
>
>>How do I determine it *in userspace*?
>>
>
> No portable way. The portable API (siginfo_t) doesn't supply it ATM.
> In theory it could be put into si_errno, but no current kernel does that.
> Most architectures will likely gives it to you in some form in the
> arch specific signal frame however.
>
IWBNI it could be added, assuming it can be done without breaking existing
applications (perhaps a flag could be snuck in somewhere.) I can write
the code so that if the information is present, it uses it; otherwise the
worst that can happen is having to do the two-step NONE -> READ ->
READ|WRITE transition, as it currently is.
-hpa
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/