XenevaOS
Loading...
Searching...
No Matches
srcu.h
Go to the documentation of this file.
1/*
2 * DCL srcu.h -- sleeping-RCU API as no-ops.
3 *
4 * drm_drv.c/drm_bridge.c run their unplug checks under DEFINE_STATIC_SRCU +
5 * srcu_read_lock(); single-CPU Xeneva has no reader/writer separation to
6 * wait for, so a read section is nothing and synchronize_srcu returns at
7 * once. notifier.h's heavy srcu_notifier machinery is stubbed on its own.
8 */
9#ifndef _LINUX_SRCU_H
10#define _LINUX_SRCU_H
11
14};
15
16#define DEFINE_SRCU(name) struct srcu_struct name
17#define DEFINE_STATIC_SRCU(name) static struct srcu_struct name
18
19static inline int srcu_read_lock(struct srcu_struct *s) { (void)s; return 0; }
20static inline void srcu_read_unlock(struct srcu_struct *s, int id) { (void)s; (void)id; }
21static inline void synchronize_srcu(struct srcu_struct *s) { (void)s; }
22static inline void cleanup_srcu_struct(struct srcu_struct *s) { (void)s; }
23
24#define srcu_dereference(p, c) (p)
25#define srcu_dereference_check(p, c) (p)
26
27#endif /* _LINUX_SRCU_H */
Definition srcu.h:12
int _dcl_dummy
Definition srcu.h:13