1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Rules for implicitly atomic memory accesses.
5 * Copyright (C) 2019, Google LLC.
8 #ifndef _KERNEL_KCSAN_ATOMIC_H
9 #define _KERNEL_KCSAN_ATOMIC_H
11 #include <linux/types.h>
14 * Special rules for certain memory where concurrent conflicting accesses are
15 * common, however, the current convention is to not mark them; returns true if
16 * access to @ptr should be considered atomic. Called from slow-path.
18 static bool kcsan_is_atomic_special(const volatile void *ptr)
23 #endif /* _KERNEL_KCSAN_ATOMIC_H */