[CRIU] [PATCH 02.5/9] cr-errno: add helpers for task_entries->cr_err
Ruslan Kuprieiev
kupruser at gmail.com
Fri Dec 19 10:41:44 PST 2014
Drop it, please.
19.12.2014 20:14, Ruslan Kuprieiev пишет:
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
> ---
> include/cr-errno.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/include/cr-errno.h b/include/cr-errno.h
> index b8d27d2..31ddccb 100644
> --- a/include/cr-errno.h
> +++ b/include/cr-errno.h
> @@ -9,4 +9,7 @@ int get_cr_errno(void);
> * ESRCH - no process can be found corresponding to that specified by pid
> */
>
> +#define set_task_cr_err(new_err) atomic_cmpxchg(&task_entries->cr_err, 0, new_err)
> +#define get_task_cr_err() atomic_read(&task_entries->cr_err)
> +
> #endif /* __CR_ERRNO_H__ */
>
More information about the CRIU
mailing list