|
|
@@ -23,7 +23,9 @@
|
|
|
*
|
|
|
* Return:
|
|
|
* 0 - On success
|
|
|
- * <0 - On error
|
|
|
+ * -EFAULT - User access resulted in a page fault
|
|
|
+ * -EAGAIN - Atomic operation was unable to complete due to contention
|
|
|
+ * -ENOSYS - Operation not supported
|
|
|
*/
|
|
|
static inline int
|
|
|
arch_futex_atomic_op_inuser(int op, u32 oparg, int *oval, u32 __user *uaddr)
|
|
|
@@ -85,7 +87,9 @@ out_pagefault_enable:
|
|
|
*
|
|
|
* Return:
|
|
|
* 0 - On success
|
|
|
- * <0 - On error
|
|
|
+ * -EFAULT - User access resulted in a page fault
|
|
|
+ * -EAGAIN - Atomic operation was unable to complete due to contention
|
|
|
+ * -ENOSYS - Function not implemented (only if !HAVE_FUTEX_CMPXCHG)
|
|
|
*/
|
|
|
static inline int
|
|
|
futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
|