Re: [RFC] [PATCH] Pre-emption control for userspace

From: Rasmus Villemoes
Date: Thu Mar 06 2014 - 08:45:18 EST


Peter Zijlstra <peterz@xxxxxxxxxxxxx> writes:

> On Thu, Mar 06, 2014 at 02:24:43PM +0100, Rasmus Villemoes wrote:
>> Is it possible to implement non-sleeping versions of {get,put}_user()?
>
> __{get,put}_user()

Huh?

arch/x86/include/asm/uaccess.h:

/**
* __get_user: - Get a simple variable from user space, with less checking.
* @x: Variable to store result.
* @ptr: Source address, in user space.
*
* Context: User context only. This function may sleep.

What am I missing?

Rasmus

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/